Skip to main content

Module wgs84_karney

Module wgs84_karney 

Source
Expand description

High-precision WGS84 geodesy and ellipsoidal geometric operations.

Provides Vincenty/Karney geodesics, Bowring closed-form ECEF/geodetic conversion, ENU tangent bases, principal radii of curvature, and authalic polygon area.

Strictly enforces Tier-1 HotZeroHeap (zero allocations in all evaluation paths).

Structs§

EcefCoord
Earth-Centered, Earth-Fixed (ECEF) Cartesian coordinates in meters.
GeodesicDirectResult
Result of a direct geodesic computation from a starting point, bearing, and distance.
GeodesicInverseResult
Result of an inverse geodesic computation between two points on the ellipsoid.
GeodeticCoord
Geodetic coordinates (latitude, longitude in degrees, ellipsoidal height in meters).

Constants§

MEAN_EARTH_RADIUS_M
WGS84_A
WGS84_B
WGS84_E2
WGS84_EP2
WGS84_F
WGS84_INV_F

Functions§

ecef_to_enu
Transforms an ECEF point to local ENU tangent plane relative to an anchor.
ecef_to_geodetic_bowring
Converts ECEF coordinates to geodetic coordinates using Bowring’s multi-step refinement.
enu_basis
Orthonormal rotation matrix transforming ECEF delta vectors into local ENU [East, North, Up].
enu_to_ecef
Transforms local ENU coordinates [East, North, Up] relative to an anchor back into ECEF.
geodesic_direct
Geodesic direct problem on WGS84.
geodesic_intermediate
Computes intermediate waypoint along the geodesic at parametric fraction [0.0, 1.0].
geodesic_inverse
Geodesic inverse problem on WGS84 with antipodal fallback.
geodesic_polygon_area_m2
Zero-heap ellipsoidal polygon area in square meters using authalic latitude mapping.
geodetic_to_ecef
Converts geodetic latitude/longitude/altitude to ECEF coordinates.
ground_resolution_m_per_px
Web Mercator ground resolution in meters per pixel at a given latitude and zoom level.
principal_radii_of_curvature
Computes principal radii of curvature in meters: (meridional_radius_m, prime_vertical_radius_n).