public void EcefToGeodetic_composed_with_ToEcef_yields_original_point() { var datum = GeoDatum.Wgs84; var ecef = new Vector3(3119880, 4419927, 3366731); var geodetic = GeoPoint3Utils.EcefToGeodetic(ecef, datum); var roundTrip = geodetic.ToEcef(datum); Expect(Vector3.Distance(roundTrip, ecef), Is.LessThan(1e-3)); }
public static RotoTranslation3 Enu(this GeoPoint2 origin, GeoDatum datum) { return(GeoPoint3Utils.Enu((GeoPoint3)origin, datum)); }
public static Vector3 ToEcef(this GeoPoint2 point, GeoDatum datum) { return(GeoPoint3Utils.ToEcef((GeoPoint3)point, datum)); }