Struct geod_types::Longitude [−][src]
pub struct Longitude<A: Angle>(_);
The angle measured on the equatorial plane between the meridian of the point and the prime meridian (Greenwich, UK). Read more.
Implementations
impl<A: Angle> Longitude<A>
[src]
impl<A: Angle> Longitude<A>
[src]pub fn east<T>(to_angle: T) -> Result<Self, A::NumErr> where
T: TryInto<A, Error = A::NumErr>,
[src]
T: TryInto<A, Error = A::NumErr>,
Construct an eastern longitude with some numeric information.
Errors
- cannot construct an angle from the given information (overflow of some kind)
- the constructed angle is more than the straight angle.
Valid longitude is in the range
0 <= lon <= 180 deg
.
pub fn west<T>(to_angle: T) -> Result<Self, A::NumErr> where
T: TryInto<A, Error = A::NumErr>,
[src]
T: TryInto<A, Error = A::NumErr>,
Construct a western longitude with some numeric information.
Errors
- cannot construct an angle from the given information (overflow of some kind)
- the constructed angle is more than the straight angle.
Valid longitude is in the range
0 <= lon <= 180 deg
.
pub fn prime() -> Self
[src]
The chosen by convention 0-meridian
pub fn anti_meridian() -> Self
[src]
The longitude opposite to the prime
pub fn angle(self) -> A
[src]
Angle between the longitude and the prime meridian (absolute value of the longitude).
pub fn direction(self) -> Option<RotationalDirection>
[src]
In which direction (from the prime) should we move to reach the longitude faster
pub fn opposite(self) -> Self
[src]
Diametrically opposite meridian which together with the current one defines the hemisphere (great circle)
Trait Implementations
impl<A: Angle> PartialOrd<Longitude<A>> for Longitude<A>
[src]
impl<A: Angle> PartialOrd<Longitude<A>> for Longitude<A>
[src]impl<A: Angle> StructuralEq for Longitude<A>
[src]
impl<A: Angle> StructuralEq for Longitude<A>
[src]impl<A: Angle> TryFrom<[i16; 2]> for Longitude<A> where
Self: TryFrom<[i16; 4], Error = <A as Angle>::NumErr>,
[src]
impl<A: Angle> TryFrom<[i16; 2]> for Longitude<A> where
Self: TryFrom<[i16; 4], Error = <A as Angle>::NumErr>,
[src]impl<A: Angle> TryFrom<[i16; 3]> for Longitude<A> where
Self: TryFrom<[i16; 4], Error = <A as Angle>::NumErr>,
[src]
impl<A: Angle> TryFrom<[i16; 3]> for Longitude<A> where
Self: TryFrom<[i16; 4], Error = <A as Angle>::NumErr>,
[src]impl<A: Angle> TryFrom<(i16, u8, u8, u16)> for Longitude<A> where
A: TryFrom<(u16, u8, u8, u16), Error = <A as Angle>::NumErr>,
[src]
impl<A: Angle> TryFrom<(i16, u8, u8, u16)> for Longitude<A> where
A: TryFrom<(u16, u8, u8, u16), Error = <A as Angle>::NumErr>,
[src]impl<A: Angle> TryFrom<(i16, u8, u8)> for Longitude<A> where
Self: TryFrom<(i16, u8, u8, u16), Error = <A as Angle>::NumErr>,
[src]
impl<A: Angle> TryFrom<(i16, u8, u8)> for Longitude<A> where
Self: TryFrom<(i16, u8, u8, u16), Error = <A as Angle>::NumErr>,
[src]impl<A: Angle> TryFrom<(i16, u8)> for Longitude<A> where
Self: TryFrom<(i16, u8, u8, u16), Error = <A as Angle>::NumErr>,
[src]
impl<A: Angle> TryFrom<(i16, u8)> for Longitude<A> where
Self: TryFrom<(i16, u8, u8, u16), Error = <A as Angle>::NumErr>,
[src]Auto Trait Implementations
impl<A> RefUnwindSafe for Longitude<A> where
A: RefUnwindSafe,
impl<A> RefUnwindSafe for Longitude<A> where
A: RefUnwindSafe,
impl<A> UnwindSafe for Longitude<A> where
A: UnwindSafe,
impl<A> UnwindSafe for Longitude<A> where
A: UnwindSafe,