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 CLARKE1866: Self
pub const CLARKE1866: Self
Clarke 1866 ellipsoid (EPSG:7008).
Trait Implementations§
Source§impl PartialOrd for Ellipsoid
impl PartialOrd for Ellipsoid
impl Copy for Ellipsoid
impl StructuralPartialEq for Ellipsoid
Auto Trait Implementations§
impl Freeze for Ellipsoid
impl RefUnwindSafe for Ellipsoid
impl Send for Ellipsoid
impl Sync for Ellipsoid
impl Unpin for Ellipsoid
impl UnwindSafe for Ellipsoid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more