pub struct SphericalMercatorProjection { /* private fields */ }
Available on crate feature
std
only.Implementations§
Source§impl SphericalMercatorProjection
impl SphericalMercatorProjection
pub fn new(zoom_level: u8) -> SphericalMercatorProjection
pub fn tile_x_index(&self, coordinate: &EllipticalCoordinate) -> f64
pub fn tile_y_index(&self, coordinate: &EllipticalCoordinate) -> f64
pub fn latitude(&self, tile_y: f64) -> Latitude
pub fn longitude(&self, tile_x: f64) -> Longitude
pub fn max_tile_index(&self) -> u64
Trait Implementations§
Source§impl Projection for SphericalMercatorProjection
impl Projection for SphericalMercatorProjection
Source§fn get_center_coords(&self) -> &EllipticalCoordinate
fn get_center_coords(&self) -> &EllipticalCoordinate
Returns the center elliptical coordinate of this projection
Source§fn project_to_cartesian(
&self,
coord: &EllipticalCoordinate,
) -> CartesianCoordinate
fn project_to_cartesian( &self, coord: &EllipticalCoordinate, ) -> CartesianCoordinate
Projects the elliptical coordinate to an equivalent cartesian coordinate
Source§fn project_to_elliptical(
&self,
coord: &CartesianCoordinate,
) -> EllipticalCoordinate
fn project_to_elliptical( &self, coord: &CartesianCoordinate, ) -> EllipticalCoordinate
Projects the cartesian coordinate to an equivalent elliptical coordinate
Auto Trait Implementations§
impl Freeze for SphericalMercatorProjection
impl RefUnwindSafe for SphericalMercatorProjection
impl Send for SphericalMercatorProjection
impl Sync for SphericalMercatorProjection
impl Unpin for SphericalMercatorProjection
impl UnwindSafe for SphericalMercatorProjection
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