Struct geod_types::Point [−][src]
pub struct Point<A: Angle> { /* fields omitted */ }
The point on the surface of an ellipsoid, represented as the pair (latitude, longitude)
Implementations
impl<A: Angle> Point<A>
[src]
impl<A: Angle> Point<A>
[src]pub fn new(lat: Latitude<A>, lon: Longitude<A>) -> Self
[src]
Construct a point from the given latitude and longitude
pub fn with_coordinates<Lat, Lon>(lat: Lat, lon: Lon) -> Result<Self, A::NumErr> where
Latitude<A>: TryFrom<Lat, Error = A::NumErr>,
Longitude<A>: TryFrom<Lon, Error = A::NumErr>,
[src]
Latitude<A>: TryFrom<Lat, Error = A::NumErr>,
Longitude<A>: TryFrom<Lon, Error = A::NumErr>,
Construct a point on the surface with some numeric information about latitude and longitude.
Errors
An overflow of some kind can appear when constructing latitude or longitude from the given numbers.
pub fn north_pole() -> Self
[src]
Construct a north pole point (lat=90, lon=0 (by convention)).
pub fn south_pole() -> Self
[src]
Construct a south pole point (lat=-90, lon=0 (by convention)).
pub fn is_pole(&self) -> bool
[src]
Is the point represents a pole? All the longitudes at pole are singular, so the longitude of the pole can be any meridian.
pub fn antipodal(&self) -> Self
[src]
The diametrically opposite point
Trait Implementations
Auto Trait Implementations
impl<A> RefUnwindSafe for Point<A> where
A: RefUnwindSafe,
impl<A> RefUnwindSafe for Point<A> where
A: RefUnwindSafe,
impl<A> UnwindSafe for Point<A> where
A: UnwindSafe,
impl<A> UnwindSafe for Point<A> where
A: UnwindSafe,