Struct blh::GeocentricCoord
[−]
[src]
pub struct GeocentricCoord { pub x: f64, pub y: f64, pub z: f64, }
A position on the earth represented by x [m], y [m], and z [m] in geocentric (ECEF) coordinate.
Fields
x: f64
y: f64
z: f64
Methods
impl GeocentricCoord
[src]
Trait Implementations
impl Debug for GeocentricCoord
[src]
impl Clone for GeocentricCoord
[src]
fn clone(&self) -> GeocentricCoord
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 Copy for GeocentricCoord
[src]
impl PartialEq for GeocentricCoord
[src]
fn eq(&self, __arg_0: &GeocentricCoord) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GeocentricCoord) -> bool
This method tests for !=
.
impl ApproxEq for GeocentricCoord
[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: &GeocentricCoord,
epsilon: f64,
max_relative: f64)
-> bool
other: &GeocentricCoord,
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: &GeocentricCoord, 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
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> From<GeodeticCoord<E>> for GeocentricCoord
[src]
fn from(blh: GeodeticCoord<E>) -> GeocentricCoord
Performs the conversion.