blh

Struct GeodeticCoord

Source
pub struct GeodeticCoord<E> {
    pub lat: Radians<f64>,
    pub lon: Radians<f64>,
    pub hgt: f64,
    /* private fields */
}
Expand description

A position on the earth represented by latitude [rad], longitude [rad], and geoid height [m].

Fields§

§lat: Radians<f64>§lon: Radians<f64>§hgt: f64

Implementations§

Source§

impl<E> GeodeticCoord<E>

Source

pub fn new(lat: Radians<f64>, lon: Radians<f64>, hgt: f64) -> Self

Construct a geodetic coord with latitude/longitude in radians.

Source

pub fn from_degrees(lat: Degrees<f64>, lon: Degrees<f64>, hgt: f64) -> Self

Construct a geodetic coord with latitude/longitude in degrees.

Trait Implementations§

Source§

impl<E> ApproxEq for GeodeticCoord<E>

Source§

type Epsilon = f64

Used for specifying relative comparisons.
Source§

fn default_epsilon() -> f64

The default tolerance to use when testing values that are close together. Read more
Source§

fn default_max_relative() -> f64

The default relative tolerance for testing values that are far-apart. Read more
Source§

fn default_max_ulps() -> u32

The default ULPs to tolerate when testing values that are far-apart. Read more
Source§

fn relative_eq( &self, other: &GeodeticCoord<E>, epsilon: f64, max_relative: f64, ) -> bool

A test for equality that uses a relative comparison if the values are far apart.
Source§

fn ulps_eq(&self, other: &GeodeticCoord<E>, epsilon: f64, max_ulps: u32) -> bool

A test for equality that uses units in the last place (ULP) if the values are far apart.
Source§

fn relative_ne( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool

The inverse of ApproxEq::relative_eq.
Source§

fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool

The inverse of ApproxEq::ulps_eq.
Source§

impl<E> Clone for GeodeticCoord<E>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<E: Ellipsoid> Debug for GeodeticCoord<E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<E: Ellipsoid> From<GeocentricCoord> for GeodeticCoord<E>

Source§

fn from(xyz: GeocentricCoord) -> GeodeticCoord<E>

Converts to this type from the input type.
Source§

impl<E: Ellipsoid> From<GeodeticCoord<E>> for GeocentricCoord

Source§

fn from(blh: GeodeticCoord<E>) -> GeocentricCoord

Converts to this type from the input type.
Source§

impl<E> PartialEq for GeodeticCoord<E>

Source§

fn eq(&self, other: &GeodeticCoord<E>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<E> Copy for GeodeticCoord<E>

Auto Trait Implementations§

§

impl<E> Freeze for GeodeticCoord<E>

§

impl<E> RefUnwindSafe for GeodeticCoord<E>
where E: RefUnwindSafe,

§

impl<E> Send for GeodeticCoord<E>
where E: Send,

§

impl<E> Sync for GeodeticCoord<E>
where E: Sync,

§

impl<E> Unpin for GeodeticCoord<E>
where E: Unpin,

§

impl<E> UnwindSafe for GeodeticCoord<E>
where E: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.