Template Function navtk::navutils::east_to_delta_lon(const S1&, const S2&, const S3&)
Defined in File navigation.hpp
Function Documentation
-
template<typename S1, typename S2, typename S3, IfAllTensorsOfDim<0, S1, S2, S3>* = nullptr>
double navtk::navutils::east_to_delta_lon(const S1 &east_distance, const S2 &approx_lat, const S3 &altitude) 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)See also
See also
- Template Parameters
S1 – Type of east_distance.
S2 – Type of approx_lat.
S3 – Type of altitude.
std::enable_if_t<> – Constrains S1, S2, and S3 to be 0 dimensional.
- 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), 0.0 by default.
- Returns
Equivalent distance expressed as radians of latitude (radians).