Struct geod::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]

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]

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]

impl<A: Angle> PartialEq<Point<A>> for Point<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for Point<A> where
    A: RefUnwindSafe

impl<A> Send for Point<A> where
    A: Send

impl<A> Sync for Point<A> where
    A: Sync

impl<A> Unpin for Point<A> where
    A: Unpin

impl<A> UnwindSafe for Point<A> where
    A: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.