Function navtk::navutils::llh_to_ecef

Function Documentation

Vector3 navtk::navutils::llh_to_ecef(const Vector3 &Pwgs)

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

Pwgs – 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).