irox_carto::proj

Trait Projection

Source
pub trait Projection {
    // Required methods
    fn get_center_coords(&self) -> &EllipticalCoordinate;
    fn project_to_cartesian(
        &self,
        coord: &EllipticalCoordinate,
    ) -> CartesianCoordinate;
    fn project_to_elliptical(
        &self,
        coord: &CartesianCoordinate,
    ) -> EllipticalCoordinate;
}
Expand description

Allows a projection from Elliptical to Cartesian coordinates

Required Methods§

Source

fn get_center_coords(&self) -> &EllipticalCoordinate

Returns the center elliptical coordinate of this projection

Source

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

Projects the cartesian coordinate to an equivalent elliptical coordinate

Implementors§

Source§

impl Projection for SphericalMercatorProjection

Available on crate feature std only.
Source§

impl Projection for LambertConformalConic

Available on crate feature std only.
Source§

impl Projection for TransverseMercator

Available on crate feature std only.