pub struct ExtendedTransverseMercatorProjection { /* private fields */ }Implementations§
Source§impl ExtendedTransverseMercatorProjection
impl ExtendedTransverseMercatorProjection
Sourcepub fn new(lng0: f64, lat0: f64, k: f64, a: f64, f: f64) -> Self
pub fn new(lng0: f64, lat0: f64, k: f64, a: f64, f: f64) -> Self
Creates a new Extended Transverse Mercator Projection with the given parameters.
§Arguments
lng0- Longitude in degrees.lat0- Latitude in degrees.k- Scale factora- Semi-major axisf- Flattening factor
pub fn project_forward( &self, lng: f64, lat: f64, z: f64, ) -> Result<(f64, f64, f64), TransformError>
pub fn project_inverse( &self, x: f64, y: f64, z: f64, ) -> Result<(f64, f64, f64), TransformError>
Trait Implementations§
Source§impl Clone for ExtendedTransverseMercatorProjection
impl Clone for ExtendedTransverseMercatorProjection
Source§fn clone(&self) -> ExtendedTransverseMercatorProjection
fn clone(&self) -> ExtendedTransverseMercatorProjection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExtendedTransverseMercatorProjection
impl RefUnwindSafe for ExtendedTransverseMercatorProjection
impl Send for ExtendedTransverseMercatorProjection
impl Sync for ExtendedTransverseMercatorProjection
impl Unpin for ExtendedTransverseMercatorProjection
impl UnwindSafe for ExtendedTransverseMercatorProjection
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