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, to maintain consistent precision across all targets pre-defined ellipsoids are defined as functions. The overhead of calling these functions should be negligible in most cases.
Fields§
§A: f64Ellipsoid semi-major axis
B: f64Ellipsoid semi-minor axis
E: f64Ellipsoid eccentricity
F: f64Ellipsoid flattening
Implementations§
Trait Implementations§
source§impl PartialEq<Ellipsoid> for Ellipsoid
impl PartialEq<Ellipsoid> for Ellipsoid
source§impl PartialOrd<Ellipsoid> for Ellipsoid
impl PartialOrd<Ellipsoid> for Ellipsoid
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more