Struct geod::Point [−][src]
The point on the surface of an ellipsoid, represented as the pair (latitude, longitude)
Implementations
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
impl<A: Debug + Angle> Debug for Point<A>
[src]
impl<A: Angle> Display for Point<A> where
A: Display,
[src]
A: Display,
impl<A: Angle> PartialEq<Point<A>> for Point<A>
[src]
Auto Trait Implementations
impl<A> RefUnwindSafe for Point<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for Point<A> where
A: Send,
A: Send,
impl<A> Sync for Point<A> where
A: Sync,
A: Sync,
impl<A> Unpin for Point<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for Point<A> where
A: UnwindSafe,
A: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,