Skip to content

Geodetic

Defined in: geodetic.rs:17

pub struct Geodetic {
pub latitude: f64,
pub longitude: f64,
pub altitude: f64,
}

Geodetic coordinates (WGS-84).

latitude: f64

Geodetic latitude [rad].


longitude: f64

Longitude [rad].


altitude: f64

Height above the WGS-84 ellipsoid [km].


fn to_ecef<F: frame::Ecef>(&self) -> Vec3<F>

Convert to a WGS-84 Earth-fixed Cartesian vector [km] on any frame::Ecef frame marker.

Generic counterpart of SimpleEcef::from(geodetic), mirroring Vec3::to_geodetic — the ellipsoid math is identical for the simple and precise Ecef markers.