pub struct Globe;Expand description
Geocentric globe projection using the WGS-84 ellipsoid.
Output coordinates are Earth-centered Earth-fixed style Cartesian meters:
x: intersects the equator at longitude 0y: intersects the equator at longitude 90Ez: north pole axis
Implementations§
Trait Implementations§
Source§impl Projection for Globe
impl Projection for Globe
Source§fn project(&self, geo: &GeoCoord) -> WorldCoord
fn project(&self, geo: &GeoCoord) -> WorldCoord
Project a geographic coordinate to world space (meters).
Source§fn unproject(&self, world: &WorldCoord) -> GeoCoord
fn unproject(&self, world: &WorldCoord) -> GeoCoord
Inverse-project world coordinates back to geographic.
Source§fn scale_factor(&self, _geo: &GeoCoord) -> f64
fn scale_factor(&self, _geo: &GeoCoord) -> f64
Local linear scale factor at the given geographic coordinate. Read more
Source§fn projection_bounds(&self) -> GeoBounds
fn projection_bounds(&self) -> GeoBounds
The geographic bounding box of valid input for this projection. Read more
Auto Trait Implementations§
impl Freeze for Globe
impl RefUnwindSafe for Globe
impl Send for Globe
impl Sync for Globe
impl Unpin for Globe
impl UnsafeUnpin for Globe
impl UnwindSafe for Globe
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