Function navtk::navutils::east_to_delta_lon

Function Documentation

double navtk::navutils::east_to_delta_lon(double east_distance, double approx_lat, double altitude = 0.0)

Converts distance in meters along the East axis of the local level NED frame into radians of longitude with respect to the WGS-84 ellipsoid.

Example Use: You are at a position (lat, lon, alt). You want to know what the longitude is at a point 10m to your east (positive longitude). That can be calculated using this function as:

new_lon = lon + east_to_delta_lon(10.0, lat, alt)

Parameters
  • east_distance – Small distance to convert to radians of longitude (meters, east is positive)

  • approx_lat – Approximate latitude (radians)

  • altitude – WGS-84 altitude (ellipsoidal) (meters)

Returns

Equivalent distance expressed as radians of latitude (radians).