Struct geod_types::Latitude [−][src]
pub struct Latitude<A: Angle>(_);
The angle measured between the equatorial plane and the point along the meridian. Read more.
Implementations
impl<A: Angle> Latitude<A>
[src]
impl<A: Angle> Latitude<A>
[src]pub fn north<T>(angle: T) -> Result<Self, A::NumErr> where
T: TryInto<A, Error = A::NumErr>,
[src]
T: TryInto<A, Error = A::NumErr>,
Construct a northern latitude with some numeric information.
Errors
- cannot construct an angle from the given information (overflow of some kind)
- the constructed angle is more than the right angle.
Valid latitude is in the range
0 <= lat <= 90 deg
.
pub fn south<T>(angle: T) -> Result<Self, A::NumErr> where
T: TryInto<A, Error = A::NumErr>,
[src]
T: TryInto<A, Error = A::NumErr>,
Construct a southern latitude with some numeric information.
Errors
- cannot construct an angle from the given information (overflow of some kind)
- the constructed angle is more than the right angle.
Valid latitude is in the range
0 <= lat <= 90 deg
.
pub fn equator() -> Self
[src]
The central latitude of the sphere equidistant from the poles
pub fn angle_from_equator(self) -> A
[src]
Angle between the latitude and the equator (absolute value of the latitude).
pub fn hemisphere(self) -> Option<Pole>
[src]
Which pole are closer to the given latitude
pub fn is_pole(self) -> bool
[src]
Is the given latitude belongs to a pole
Trait Implementations
impl<A: PartialOrd + Angle> PartialOrd<Latitude<A>> for Latitude<A>
[src]
impl<A: PartialOrd + Angle> PartialOrd<Latitude<A>> for Latitude<A>
[src]impl<A: Angle> StructuralEq for Latitude<A>
[src]
impl<A: Angle> StructuralEq for Latitude<A>
[src]impl<A: Angle> StructuralPartialEq for Latitude<A>
[src]
impl<A: Angle> StructuralPartialEq for Latitude<A>
[src]impl<A: Angle> TryFrom<[i16; 2]> for Latitude<A> where
Self: TryFrom<[i16; 4], Error = <A as Angle>::NumErr>,
[src]
impl<A: Angle> TryFrom<[i16; 2]> for Latitude<A> where
Self: TryFrom<[i16; 4], Error = <A as Angle>::NumErr>,
[src]impl<A: Angle> TryFrom<[i16; 3]> for Latitude<A> where
Self: TryFrom<[i16; 4], Error = <A as Angle>::NumErr>,
[src]
impl<A: Angle> TryFrom<[i16; 3]> for Latitude<A> where
Self: TryFrom<[i16; 4], Error = <A as Angle>::NumErr>,
[src]impl<A: Angle> TryFrom<(i8, u8, u8, u16)> for Latitude<A> where
A: TryFrom<(u16, u8, u8, u16), Error = <A as Angle>::NumErr>,
[src]
impl<A: Angle> TryFrom<(i8, u8, u8, u16)> for Latitude<A> where
A: TryFrom<(u16, u8, u8, u16), Error = <A as Angle>::NumErr>,
[src]impl<A: Angle> TryFrom<(i8, u8, u8)> for Latitude<A> where
Self: TryFrom<(i8, u8, u8, u16), Error = <A as Angle>::NumErr>,
[src]
impl<A: Angle> TryFrom<(i8, u8, u8)> for Latitude<A> where
Self: TryFrom<(i8, u8, u8, u16), Error = <A as Angle>::NumErr>,
[src]impl<A: Angle> TryFrom<(i8, u8)> for Latitude<A> where
Self: TryFrom<(i8, u8, u8, u16), Error = <A as Angle>::NumErr>,
[src]
impl<A: Angle> TryFrom<(i8, u8)> for Latitude<A> where
Self: TryFrom<(i8, u8, u8, u16), Error = <A as Angle>::NumErr>,
[src]Auto Trait Implementations
impl<A> RefUnwindSafe for Latitude<A> where
A: RefUnwindSafe,
impl<A> RefUnwindSafe for Latitude<A> where
A: RefUnwindSafe,
impl<A> UnwindSafe for Latitude<A> where
A: UnwindSafe,
impl<A> UnwindSafe for Latitude<A> where
A: UnwindSafe,