pub struct GeocentricLatitudeConverter { /* private fields */ }Expand description
§Conversion from geographic to geocentric latitude and back.
Convert geographical latitude to geocentric (or the other way round if direction = PJ_INV)
The conversion involves a call to the tangent function, which goes through the roof at the poles, so very close (the last centimeter) to the poles no conversion takes place and the input latitude is copied directly to the output.
Fortunately, the geocentric latitude converges to the geographical at the poles, so the difference is negligible.
For the spherical case, the geographical latitude equals the geocentric, and consequently, the input is copied directly to the output.
Trait Implementations§
Source§impl Clone for GeocentricLatitudeConverter
impl Clone for GeocentricLatitudeConverter
Source§fn clone(&self) -> GeocentricLatitudeConverter
fn clone(&self) -> GeocentricLatitudeConverter
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeocentricLatitudeConverter
impl Debug for GeocentricLatitudeConverter
Source§impl ProjectCoordinates for GeocentricLatitudeConverter
impl ProjectCoordinates for GeocentricLatitudeConverter
impl StructuralPartialEq for GeocentricLatitudeConverter
Auto Trait Implementations§
impl Freeze for GeocentricLatitudeConverter
impl !RefUnwindSafe for GeocentricLatitudeConverter
impl !Send for GeocentricLatitudeConverter
impl !Sync for GeocentricLatitudeConverter
impl Unpin for GeocentricLatitudeConverter
impl !UnwindSafe for GeocentricLatitudeConverter
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more