[][src]Struct geographiclib_rs::Geodesic

pub struct Geodesic {
    pub a: f64,
    pub f: f64,
    pub _f1: f64,
    pub _e2: f64,
    pub _ep2: f64,
    pub _b: f64,
    pub _c2: f64,
    pub GEODESIC_ORDER: i64,
    pub tiny_: f64,
    // some fields omitted
}

Fields

a: f64f: f64_f1: f64_e2: f64_ep2: f64_b: f64_c2: f64GEODESIC_ORDER: i64tiny_: f64

Methods

impl Geodesic[src]

pub fn wgs84() -> Self[src]

pub fn equatorial_radius(&self) -> f64[src]

pub fn flattening(&self) -> f64[src]

impl Geodesic[src]

pub fn new(a: f64, f: f64) -> Self[src]

pub fn _A3f(&self, eps: f64) -> f64[src]

pub fn _C3f(&self, eps: f64, c: &mut [f64])[src]

pub fn _C4f(&self, eps: f64, c: &mut [f64])[src]

pub fn _Lengths(
    &self,
    eps: f64,
    sig12: f64,
    ssig1: f64,
    csig1: f64,
    dn1: f64,
    ssig2: f64,
    csig2: f64,
    dn2: f64,
    cbet1: f64,
    cbet2: f64,
    outmask: u64,
    C1a: &mut [f64],
    C2a: &mut [f64]
) -> (f64, f64, f64, f64, f64)
[src]

pub fn _InverseStart(
    &self,
    sbet1: f64,
    cbet1: f64,
    dn1: f64,
    sbet2: f64,
    cbet2: f64,
    dn2: f64,
    lam12: f64,
    slam12: f64,
    clam12: f64,
    C1a: &mut [f64],
    C2a: &mut [f64]
) -> (f64, f64, f64, f64, f64, f64)
[src]

pub fn _Lambda12(
    &self,
    sbet1: f64,
    cbet1: f64,
    dn1: f64,
    sbet2: f64,
    cbet2: f64,
    dn2: f64,
    salp1: f64,
    calp1: &mut f64,
    slam120: f64,
    clam120: f64,
    diffp: bool,
    C1a: &mut [f64],
    C2a: &mut [f64],
    C3a: &mut [f64]
) -> (f64, f64, f64, f64, f64, f64, f64, f64, f64, f64, f64)
[src]

pub fn _gen_inverse_azi(
    &self,
    lat1: f64,
    lon1: f64,
    lat2: f64,
    lon2: f64,
    outmask: u64
) -> (f64, f64, f64, f64, f64, f64, f64, f64)
[src]

pub fn _gen_inverse(
    &self,
    lat1: f64,
    lon1: f64,
    lat2: f64,
    lon2: f64,
    outmask: u64
) -> (f64, f64, f64, f64, f64, f64, f64, f64, f64, f64)
[src]

pub fn _gen_direct(
    &self,
    lat1: f64,
    lon1: f64,
    azi1: f64,
    arcmode: bool,
    s12_a12: f64,
    outmask: u64
) -> (f64, f64, f64, f64, f64, f64, f64, f64, f64)
[src]

returns (a12, lat2, lon2, azi2, s12, m12, M12, M21, S12)

Trait Implementations

impl Clone for Geodesic[src]

impl Copy for Geodesic[src]

impl Debug for Geodesic[src]

impl DirectGeodesic<(f64, f64, f64, f64, f64, f64, f64, f64)> for Geodesic[src]

fn direct(
    &self,
    lat1: f64,
    lon1: f64,
    azi1: f64,
    s12: f64
) -> (f64, f64, f64, f64, f64, f64, f64, f64)
[src]

See the documentation for the DirectGeodesic trait.

Returns

  • lat2 latitude of point 2 (degrees).
  • lon2 longitude of point 2 (degrees).
  • azi2 (forward) azimuth at point 2 (degrees).
  • m12 reduced length of geodesic (meters).
  • M12 geodesic scale of point 2 relative to point 1 (dimensionless).
  • M21 geodesic scale of point 1 relative to point 2 (dimensionless).
  • S12 area under the geodesic (meters2).
  • a12 arc length of between point 1 and point 2 (degrees).

impl DirectGeodesic<(f64, f64, f64, f64, f64, f64)> for Geodesic[src]

fn direct(
    &self,
    lat1: f64,
    lon1: f64,
    azi1: f64,
    s12: f64
) -> (f64, f64, f64, f64, f64, f64)
[src]

See the documentation for the DirectGeodesic trait.

Returns

  • lat2 latitude of point 2 (degrees).
  • lon2 longitude of point 2 (degrees).
  • azi2 (forward) azimuth at point 2 (degrees).
  • m12 reduced length of geodesic (meters).
  • M12 geodesic scale of point 2 relative to point 1 (dimensionless).
  • M21 geodesic scale of point 1 relative to point 2 (dimensionless).

impl DirectGeodesic<(f64, f64, f64, f64, f64)> for Geodesic[src]

fn direct(
    &self,
    lat1: f64,
    lon1: f64,
    azi1: f64,
    s12: f64
) -> (f64, f64, f64, f64, f64)
[src]

See the documentation for the DirectGeodesic trait.

Returns

  • lat2 latitude of point 2 (degrees).
  • lon2 longitude of point 2 (degrees).
  • azi2 (forward) azimuth at point 2 (degrees).
  • M12 geodesic scale of point 2 relative to point 1 (dimensionless).
  • M21 geodesic scale of point 1 relative to point 2 (dimensionless).

impl DirectGeodesic<(f64, f64, f64, f64)> for Geodesic[src]

fn direct(
    &self,
    lat1: f64,
    lon1: f64,
    azi1: f64,
    s12: f64
) -> (f64, f64, f64, f64)
[src]

See the documentation for the DirectGeodesic trait.

Returns

  • lat2 latitude of point 2 (degrees).
  • lon2 longitude of point 2 (degrees).
  • azi2 (forward) azimuth at point 2 (degrees).
  • m12 reduced length of geodesic (meters).

impl DirectGeodesic<(f64, f64, f64)> for Geodesic[src]

fn direct(&self, lat1: f64, lon1: f64, azi1: f64, s12: f64) -> (f64, f64, f64)[src]

See the documentation for the DirectGeodesic trait.

Returns

  • lat2 latitude of point 2 (degrees).
  • lon2 longitude of point 2 (degrees).
  • azi2 (forward) azimuth at point 2 (degrees).

impl DirectGeodesic<(f64, f64)> for Geodesic[src]

fn direct(&self, lat1: f64, lon1: f64, azi1: f64, s12: f64) -> (f64, f64)[src]

See the documentation for the DirectGeodesic trait.

Returns

  • lat2 latitude of point 2 (degrees).
  • lon2 longitude of point 2 (degrees).

impl InverseGeodesic<(f64, f64, f64, f64, f64, f64, f64, f64)> for Geodesic[src]

fn inverse(
    &self,
    lat1: f64,
    lon1: f64,
    lat2: f64,
    lon2: f64
) -> (f64, f64, f64, f64, f64, f64, f64, f64)
[src]

See the documentation for the InverseGeodesic trait.

Returns

  • s12 distance between point 1 and point 2 (meters).
  • azi1 azimuth at point 1 (degrees).
  • azi2 (forward) azimuth at point 2 (degrees).
  • m12 reduced length of geodesic (meters).
  • M12 geodesic scale of point 2 relative to point 1 (dimensionless).
  • M21 geodesic scale of point 1 relative to point 2 (dimensionless).
  • S12 area under the geodesic (meters2).
  • a12 arc length of between point 1 and point 2 (degrees).

impl InverseGeodesic<(f64, f64, f64, f64, f64, f64, f64)> for Geodesic[src]

fn inverse(
    &self,
    lat1: f64,
    lon1: f64,
    lat2: f64,
    lon2: f64
) -> (f64, f64, f64, f64, f64, f64, f64)
[src]

See the documentation for the InverseGeodesic trait.

Returns

  • s12 distance between point 1 and point 2 (meters).
  • azi1 azimuth at point 1 (degrees).
  • azi2 (forward) azimuth at point 2 (degrees).
  • m12 reduced length of geodesic (meters).
  • M12 geodesic scale of point 2 relative to point 1 (dimensionless).
  • M21 geodesic scale of point 1 relative to point 2 (dimensionless).
  • a12 arc length of between point 1 and point 2 (degrees).

impl InverseGeodesic<(f64, f64, f64, f64, f64, f64)> for Geodesic[src]

fn inverse(
    &self,
    lat1: f64,
    lon1: f64,
    lat2: f64,
    lon2: f64
) -> (f64, f64, f64, f64, f64, f64)
[src]

See the documentation for the InverseGeodesic trait.

Returns

  • s12 distance between point 1 and point 2 (meters).
  • azi1 azimuth at point 1 (degrees).
  • azi2 (forward) azimuth at point 2 (degrees).
  • M12 geodesic scale of point 2 relative to point 1 (dimensionless).
  • M21 geodesic scale of point 1 relative to point 2 (dimensionless).
  • a12 arc length of between point 1 and point 2 (degrees).

impl InverseGeodesic<(f64, f64, f64, f64, f64)> for Geodesic[src]

fn inverse(
    &self,
    lat1: f64,
    lon1: f64,
    lat2: f64,
    lon2: f64
) -> (f64, f64, f64, f64, f64)
[src]

See the documentation for the InverseGeodesic trait.

Returns

  • s12 distance between point 1 and point 2 (meters).
  • azi1 azimuth at point 1 (degrees).
  • azi2 (forward) azimuth at point 2 (degrees).
  • m12 reduced length of geodesic (meters).
  • a12 arc length of between point 1 and point 2 (degrees).

impl InverseGeodesic<(f64, f64, f64, f64)> for Geodesic[src]

fn inverse(
    &self,
    lat1: f64,
    lon1: f64,
    lat2: f64,
    lon2: f64
) -> (f64, f64, f64, f64)
[src]

See the documentation for the InverseGeodesic trait.

Returns

  • s12 distance between point 1 and point 2 (meters).
  • azi1 azimuth at point 1 (degrees).
  • azi2 (forward) azimuth at point 2 (degrees).
  • a12 arc length of between point 1 and point 2 (degrees).

impl InverseGeodesic<(f64, f64, f64)> for Geodesic[src]

fn inverse(&self, lat1: f64, lon1: f64, lat2: f64, lon2: f64) -> (f64, f64, f64)[src]

See the documentation for the InverseGeodesic trait.

Returns

  • azi1 azimuth at point 1 (degrees).
  • azi2 (forward) azimuth at point 2 (degrees).
  • a12 arc length of between point 1 and point 2 (degrees).

impl InverseGeodesic<(f64, f64)> for Geodesic[src]

fn inverse(&self, lat1: f64, lon1: f64, lat2: f64, lon2: f64) -> (f64, f64)[src]

See the documentation for the InverseGeodesic trait.

Returns

  • s12 distance between point 1 and point 2 (meters).
  • a12 arc length of between point 1 and point 2 (degrees).

impl InverseGeodesic<f64> for Geodesic[src]

fn inverse(&self, lat1: f64, lon1: f64, lat2: f64, lon2: f64) -> f64[src]

See the documentation for the InverseGeodesic trait.

Returns

  • s12 distance between point 1 and point 2 (meters).

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.