using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ips.Library.Entity { public class GdopErrResult { public double ErrorRange { get; set; } public double Lambda_x { get; set; } public double Lambda_y { get; set; } public double Theta { get; set; } public static GdopErrResult FromString(string str) { GdopErrResult result = null; if (string.IsNullOrWhiteSpace(str)) return result; var strItems = str.Split(','); if (strItems.Length < 4) return result; result = new GdopErrResult(); result.ErrorRange = double.Parse(strItems[0]); result.Lambda_x = double.Parse(strItems[1]); result.Lambda_y = double.Parse(strItems[2]); result.Theta = double.Parse(strItems[3]); return result; } } }