GdopErrResult.cs 985 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Ips.Library.Entity
  7. {
  8. public class GdopErrResult
  9. {
  10. public double ErrorRange { get; set; }
  11. public double Lambda_x { get; set; }
  12. public double Lambda_y { get; set; }
  13. public double Theta { get; set; }
  14. public static GdopErrResult FromString(string str)
  15. {
  16. GdopErrResult result = null;
  17. if (string.IsNullOrWhiteSpace(str))
  18. return result;
  19. var strItems = str.Split(',');
  20. if (strItems.Length < 4)
  21. return result;
  22. result = new GdopErrResult();
  23. result.ErrorRange = double.Parse(strItems[0]);
  24. result.Lambda_x = double.Parse(strItems[1]);
  25. result.Lambda_y = double.Parse(strItems[2]);
  26. result.Theta = double.Parse(strItems[3]);
  27. return result;
  28. }
  29. }
  30. }