Template Function navtk::navutils::llh_to_ecef(const S&)

Function Documentation

template<typename S = Vector3, IfTensorOfDim<S, 1>* = nullptr>
Vector3 navtk::navutils::llh_to_ecef(const S &p_wgs)

Converts a position expressed in WGS-84 latitude, longitude, height above ellipsoid (LLH) coordinates (sometimes referred to as “Geodetic” coordinates) to Earth-Centered Earth-Fixed (ECEF) coordinates.

REFERENCE: WGS-84 Reference System (NIMA report TR 8350.2)

Parameters

p_wgs – Geodetic position defined relative to WGS-84 ellipsoid, expressed as a length three vector of latitude, longitude, and ellipsoidal altitude (radians, radians, meters)

Returns

ECEF Position: [x y z] (meters).