Struct blh::GeodeticCoord
[−]
[src]
pub struct GeodeticCoord<E> { pub lat: Radians<f64>, pub lon: Radians<f64>, pub hgt: f64, // some fields omitted }
A position on the earth represented by latitude [rad], longitude [rad], and geoid height [m].
Fields
lat: Radians<f64>
lon: Radians<f64>
hgt: f64
Methods
impl<E> GeodeticCoord<E>
[src]
fn new(lat: Radians<f64>, lon: Radians<f64>, hgt: f64) -> Self
Construct a geodetic coord with latitude/longitude in radians.
fn from_degrees(lat: Degrees<f64>, lon: Degrees<f64>, hgt: f64) -> Self
Construct a geodetic coord with latitude/longitude in degrees.
Trait Implementations
impl<E> PartialEq for GeodeticCoord<E>
[src]
fn eq(&self, other: &GeodeticCoord<E>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<E> ApproxEq for GeodeticCoord<E>
[src]
type Epsilon = f64
Used for specifying relative comparisons.
fn default_epsilon() -> f64
The default tolerance to use when testing values that are close together. Read more
fn default_max_relative() -> f64
The default relative tolerance for testing values that are far-apart. Read more
fn default_max_ulps() -> u32
The default ULPs to tolerate when testing values that are far-apart. Read more
fn relative_eq(
&self,
other: &GeodeticCoord<E>,
epsilon: f64,
max_relative: f64
) -> bool
&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.
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.
fn relative_ne(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
The inverse of ApproxEq::relative_eq
.
fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
The inverse of ApproxEq::ulps_eq
.
impl<E: Ellipsoid> Debug for GeodeticCoord<E>
[src]
impl<E> Clone for GeodeticCoord<E>
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<E> Copy for GeodeticCoord<E>
[src]
impl<E: Ellipsoid> From<GeocentricCoord> for GeodeticCoord<E>
[src]
fn from(xyz: GeocentricCoord) -> GeodeticCoord<E>
Performs the conversion.