space::irbem::Position
cheatah-space v0.1.0-alpha — Biome Standard 0.6.5-alpha
A position, in frame F.
An aggregate holding exactly one vec3d, so it is the same size, trivially copyable, and passes in registers — the frame tag costs nothing at runtime and everything at compile time.
F | the frame the components are expressed in; see kind_of for what they mean. |
Functions
radius · 2 overloads
Geocentric distance, for a Cartesian frame.
|v| in Earth radii.
O(1).
none.
Not constexpr: it takes a square root, and fixarray::norm is a runtime function. Use fixarray::squared_norm(p.v) when a compile-time comparison will do.
Latitude, for an angular frame.
degrees, north positive.
O(1).
none.
East longitude, for an angular frame.
degrees, east positive.
O(1).
none.
Constants & variables
The frame these components are expressed in.
The components — (x, y, z) in Re, or (radius|altitude, latitude, east longitude).
Zero by default: fixarray::Fixed's defaulted constructor value-initializes, which the DefaultsAreZero test pins down.
