/// <summary>
 /// Get the current latitude, longitude of this object.
 /// </summary>
 /// <returns>A LatLong representing this object's position</returns>
 public LatLong GetLatLong()
 {
     return(CoordinateConversions.ConvertEcefToLatLongAltitude(TangentBasis.PointEcef).GetLatLong());
 }
Beispiel #2
0
 /// <summary>
 /// Converts a given ECEF position to a surface latitude-longitude.
 /// </summary>
 /// <param name="world">World ECEF position.</param>
 public static LatLong FromECEF(DoubleVector3 world)
 {
     return(CoordinateConversions.ConvertEcefToLatLongAltitude(world).GetLatLong());
 }
Beispiel #3
0
 /// <summary>
 /// Create and return an ECEF world position from the underlying latitude, longitude and altitude.
 /// </summary>
 public DoubleVector3 ToECEF()
 {
     return(CoordinateConversions.ConvertLatLongAltitudeToEcef(GetLatitudeInRadians(), GetLongitudeInRadians(), GetAltitude()));
 }
Beispiel #4
0
 /// <summary>
 /// Convert the lat-long pair to an ECEF coordinate using altitude as 0.0.
 /// </summary>
 public DoubleVector3 ToECEF()
 {
     return(CoordinateConversions.ConvertLatLongAltitudeToEcef(Helpers.MathsHelpers.Deg2Rad(m_latitudeInDegrees), Helpers.MathsHelpers.Deg2Rad(m_longitudeInDegrees), 0.0f));
 }