Struct geographiclib_rs::Geodesic
source · 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: usize,
pub tiny_: f64,
/* private fields */
}
Fields§
§a: f64
§f: f64
§_f1: f64
§_e2: f64
§_ep2: f64
§_b: f64
§_c2: f64
§GEODESIC_ORDER: usize
§tiny_: f64
Implementations§
source§impl Geodesic
impl Geodesic
pub fn wgs84() -> Self
pub fn equatorial_radius(&self) -> f64
pub fn flattening(&self) -> f64
source§impl Geodesic
impl Geodesic
pub fn new(a: f64, f: f64) -> Self
pub fn _A3f(&self, eps: f64) -> f64
pub fn _C3f(&self, eps: f64, c: &mut [f64])
pub fn _C4f(&self, eps: f64, c: &mut [f64])
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)
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)
pub fn _Lambda12( &self, sbet1: f64, cbet1: f64, dn1: f64, sbet2: f64, cbet2: f64, dn2: f64, salp1: f64, calp1: 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)
pub fn _gen_inverse_azi( &self, lat1: f64, lon1: f64, lat2: f64, lon2: f64, outmask: u64 ) -> (f64, f64, f64, f64, f64, f64, f64, f64)
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)
Trait Implementations§
source§impl DirectGeodesic<(f64, f64, f64, f64)> for Geodesic
impl DirectGeodesic<(f64, f64, f64, f64)> for Geodesic
source§fn direct(
&self,
lat1: f64,
lon1: f64,
azi1: f64,
s12: f64
) -> (f64, f64, f64, f64)
fn direct( &self, lat1: f64, lon1: f64, azi1: f64, s12: f64 ) -> (f64, f64, f64, f64)
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).
source§impl DirectGeodesic<(f64, f64, f64, f64, f64)> for Geodesic
impl DirectGeodesic<(f64, f64, f64, f64, f64)> for Geodesic
source§fn direct(
&self,
lat1: f64,
lon1: f64,
azi1: f64,
s12: f64
) -> (f64, f64, f64, f64, f64)
fn direct( &self, lat1: f64, lon1: f64, azi1: f64, s12: f64 ) -> (f64, f64, f64, f64, f64)
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).
source§impl DirectGeodesic<(f64, f64, f64, f64, f64, f64)> for Geodesic
impl DirectGeodesic<(f64, f64, f64, f64, f64, f64)> for Geodesic
source§fn direct(
&self,
lat1: f64,
lon1: f64,
azi1: f64,
s12: f64
) -> (f64, f64, f64, f64, f64, f64)
fn direct( &self, lat1: f64, lon1: f64, azi1: f64, s12: f64 ) -> (f64, f64, f64, f64, f64, f64)
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).
source§impl DirectGeodesic<(f64, f64, f64, f64, f64, f64, f64, f64)> for Geodesic
impl DirectGeodesic<(f64, f64, f64, f64, f64, f64, f64, f64)> for Geodesic
source§fn direct(
&self,
lat1: f64,
lon1: f64,
azi1: f64,
s12: f64
) -> (f64, f64, f64, f64, f64, f64, f64, f64)
fn direct( &self, lat1: f64, lon1: f64, azi1: f64, s12: f64 ) -> (f64, f64, f64, f64, f64, f64, f64, f64)
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).
source§impl InverseGeodesic<(f64, f64, f64, f64)> for Geodesic
impl InverseGeodesic<(f64, f64, f64, f64)> for Geodesic
source§fn inverse(
&self,
lat1: f64,
lon1: f64,
lat2: f64,
lon2: f64
) -> (f64, f64, f64, f64)
fn inverse( &self, lat1: f64, lon1: f64, lat2: f64, lon2: f64 ) -> (f64, f64, f64, f64)
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).
source§impl InverseGeodesic<(f64, f64, f64, f64, f64)> for Geodesic
impl InverseGeodesic<(f64, f64, f64, f64, f64)> for Geodesic
source§fn inverse(
&self,
lat1: f64,
lon1: f64,
lat2: f64,
lon2: f64
) -> (f64, f64, f64, f64, f64)
fn inverse( &self, lat1: f64, lon1: f64, lat2: f64, lon2: f64 ) -> (f64, f64, f64, f64, f64)
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).
source§impl InverseGeodesic<(f64, f64, f64, f64, f64, f64)> for Geodesic
impl InverseGeodesic<(f64, f64, f64, f64, f64, f64)> for Geodesic
source§fn inverse(
&self,
lat1: f64,
lon1: f64,
lat2: f64,
lon2: f64
) -> (f64, f64, f64, f64, f64, f64)
fn inverse( &self, lat1: f64, lon1: f64, lat2: f64, lon2: f64 ) -> (f64, f64, f64, f64, f64, f64)
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).
source§impl InverseGeodesic<(f64, f64, f64, f64, f64, f64, f64)> for Geodesic
impl InverseGeodesic<(f64, f64, f64, f64, f64, f64, f64)> for Geodesic
source§fn inverse(
&self,
lat1: f64,
lon1: f64,
lat2: f64,
lon2: f64
) -> (f64, f64, f64, f64, f64, f64, f64)
fn inverse( &self, lat1: f64, lon1: f64, lat2: f64, lon2: f64 ) -> (f64, f64, f64, f64, f64, f64, f64)
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).
source§impl InverseGeodesic<(f64, f64, f64, f64, f64, f64, f64, f64)> for Geodesic
impl InverseGeodesic<(f64, f64, f64, f64, f64, f64, f64, f64)> for Geodesic
source§fn inverse(
&self,
lat1: f64,
lon1: f64,
lat2: f64,
lon2: f64
) -> (f64, f64, f64, f64, f64, f64, f64, f64)
fn inverse( &self, lat1: f64, lon1: f64, lat2: f64, lon2: f64 ) -> (f64, f64, f64, f64, f64, f64, f64, f64)
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).
source§impl InverseGeodesic<f64> for Geodesic
impl InverseGeodesic<f64> for Geodesic
source§impl PartialEq for Geodesic
impl PartialEq for Geodesic
source§impl PartialOrd for Geodesic
impl PartialOrd for Geodesic
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Geodesic
impl StructuralPartialEq for Geodesic
Auto Trait Implementations§
impl RefUnwindSafe for Geodesic
impl Send for Geodesic
impl Sync for Geodesic
impl Unpin for Geodesic
impl UnwindSafe for Geodesic
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more