Module geodesy.angle
Work with angles, latitudes and longitudes without mixing them up.
Use Angle for a bearing or another general angle. Use Latitude for
north/south position and Longitude for east/west position. Each type
accepts values in degrees or radians through an explicit factory, so a
caller never has to guess which unit an input number represents.
Domain
Angle accepts every finite represented angle. Latitude is bounded
to the geographic latitude interval. Longitude exposes the documented
geographic input interval and a unique normalized representation.
Units
Canonical storage is radians. Degree conversion is explicit at the API boundary.
Performance
Value construction, conversion, and access require no allocation.
See Also
GeographicCoordinate, GeodeticCoordinate
Date
September 26, 2026
Structs
| Name | Description |
|---|---|
Angle
|
A finite angle stored canonically in radians. |
Latitude
|
Geodetic latitude in the closed interval [-pi/2, +pi/2] radians. |
Longitude
|
Geodetic longitude in the closed interval [-pi,+pi] radians. |