Template Function navtk::navutils::north_to_delta_lat(const S1&, const S2&, const S3&)

Function Documentation

template<typename S1, typename S2, typename S3, IfAllTensorsOfDim<0, S1, S2, S3>* = nullptr>
double navtk::navutils::north_to_delta_lat(const S1 &north_distance, const S2 &approx_lat, const S3 &altitude)

Converts distance in meters along the North axis of the local level NED frame into radians of latitude 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 north (positive latitude). That can be calculated using this function as:

new_lat = lat + north_to_delta_lat(10.0, lat, alt)

Template Parameters
  • S1 – Type of north_distance.

  • S2 – Type of approx_lat.

  • S3 – Type of altitude.

  • std::enable_if_t<> – Constrains S1, S2, and S3 to be 0 dimensional.

Parameters
  • north_distance – Small distance in meters to convert (meters)

  • approx_lat – Approximate latitude (radians)

  • altitude – WGS-84 altitude (ellipsoidal) (meters), 0.0 by default.

Returns

Equivalent distance expressed as radians of latitude (radians).