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§
Sourcefn get_center_coords(&self) -> &EllipticalCoordinate
fn get_center_coords(&self) -> &EllipticalCoordinate
Returns the center elliptical coordinate of this projection
Sourcefn project_to_cartesian(
&self,
coord: &EllipticalCoordinate,
) -> CartesianCoordinate
fn project_to_cartesian( &self, coord: &EllipticalCoordinate, ) -> CartesianCoordinate
Projects the elliptical coordinate to an equivalent cartesian coordinate
Sourcefn project_to_elliptical(
&self,
coord: &CartesianCoordinate,
) -> EllipticalCoordinate
fn project_to_elliptical( &self, coord: &CartesianCoordinate, ) -> EllipticalCoordinate
Projects the cartesian coordinate to an equivalent elliptical coordinate
Implementors§
impl Projection for SphericalMercatorProjection
Available on crate feature
std
only.impl Projection for LambertConformalConic
Available on crate feature
std
only.impl Projection for TransverseMercator
Available on crate feature
std
only.