Template Function navtk::navutils::delta_lon_to_east(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::delta_lon_to_east(const S1 &delta_lon, const S2 &approx_lat, const S3 &altitude) Converts small changes of longitude (radians) into distance in meters along the East axis of the local level NED frame.
Input parameters are with respect to the WGS-84 ellipsoid.
This conversion is approximate, and the error grows as the
delta_longrows.Example:
delta_lon= \(Lon_1 - Lon_0\) (radians)approx_lat= approximate WGS-84 latitude (radians)altitude= approximate WGS-84 altitude (meters)The function will return the approximate distance, in meters, between the points (
approx_lat, \(Lon_1\),altitude) and (approx_lat, \(Lon_0\),altitude). The sign of the output matches the sign of thedelta_loninput.See also
See also
- Template Parameters
S1 – Type of delta_lon.
S2 – Type of approx_lat.
S3 – Type of altitude.
std::enable_if_t<> – Constrains S1, S2, and S3 to have dimension 0.
- Parameters
delta_lon – Small distance in longitude to convert (radians)
approx_lat – Approximate latitude (radians)
altitude – WGS-84 altitude (ellipsoidal) (meters), 0.0 by default.
- Returns
Equivalent distance (meters).