pub struct Ellipsoid {
pub A: f64,
pub B: f64,
pub E: f64,
pub F: f64,
}Expand description
Ellipsoid struct that defines all values contained by reference ellipsoids.
Values for pre-defined ellipsoids are taken from the EPSG Geodetic Parameter Dataset, Map projections: A working manual (John P. Snyder, 1987) or Proj documentation.
Because Rust consts currently do not support floating-point operations,
const_soft_float crates is used to pre-define Ellipsoids as consts.
The crater maintains consistent precision across all targets.
Users can define their own ellipsoids as consts using the new function.
Fields§
§A: f64Ellipsoid semi-major axis
B: f64Ellipsoid semi-minor axis
E: f64Ellipsoid eccentricity
F: f64Ellipsoid flattening
Implementations§
source§impl Ellipsoid
impl Ellipsoid
sourcepub const fn new(semi_major_axis: f64, inverse_flattening: f64) -> Self
pub const fn new(semi_major_axis: f64, inverse_flattening: f64) -> Self
Ellipsoid constructor using semi-major axis and inverse flattening.
sourcepub const GRS80: Ellipsoid = _
pub const GRS80: Ellipsoid = _
Geodetic Reference System 1980 (GRS 1980) ellipsoid (EPSG:7019).
sourcepub const GRS67: Ellipsoid = _
pub const GRS67: Ellipsoid = _
Geodetic Reference System 1967 (GRS 1967) ellipsoid (EPSG:7036).
sourcepub const CLARKE1866: Ellipsoid = _
pub const CLARKE1866: Ellipsoid = _
Clarke 1866 ellipsoid (EPSG:7008).
Trait Implementations§
source§impl PartialEq for Ellipsoid
impl PartialEq for Ellipsoid
source§impl PartialOrd for Ellipsoid
impl PartialOrd for Ellipsoid
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more