Skip to main content

Module transforms

Module transforms 

Source
Expand description

Coordinate transforms — WGS84 ↔ ECEF ↔ ENU, geodetic distance (OCS §4).

Reference: OCS Specification v2.2.0 §4.

Structs§

Ecef
ECEF Cartesian coordinates: X, Y, Z (OCS §4.1).
Enu
ENU local tangent plane: East, North, Up (OCS §4.1).
FourVector
A relativistic 4-vector in Minkowski spacetime: (c*t, x, y, z).
Geodetic
Geodetic coordinates: latitude, longitude, altitude (OCS §4.1).
LorentzBoost
Relativistic Lorentz Boost SO+(1,3) parameterised by dimensionless velocity vector beta = v / c.

Functions§

ecef_to_enu
Convert ECEF to ENU relative to a reference geodetic point (OCS §4.1).
ecef_to_geodetic
Convert ECEF to geodetic coordinates using Bowring’s closed-form method (OCS §4.1).
ecef_to_value
Convert Ecef to a Value::Record.
enu_to_ecef
Convert ENU to ECEF relative to a reference geodetic point (OCS §4.1).
geodetic_distance
Great-circle distance between two geodetic points using the Haversine formula. Returns distance in meters.
geodetic_to_ecef
Convert geodetic coordinates to ECEF (OCS §4.1).
geodetic_to_value
Convert Geodetic to a Value::Record.