pub struct NED(/* private fields */);Expand description
Local North East Down reference frame coordinates
Internally stored as an array of 3 f64 values are all in meters
Implementations§
Source§impl NED
impl NED
Sourcepub fn new(n: f64, e: f64, d: f64) -> NED
pub fn new(n: f64, e: f64, d: f64) -> NED
Create a NED object from the given north, east, down components
Sourcepub fn as_array_mut(&mut self) -> &mut [f64; 3]
pub fn as_array_mut(&mut self) -> &mut [f64; 3]
Get a mutable reference to the inner array storing the data
Sourcepub fn as_vector_mut(&mut self) -> &mut Vector3<f64>
pub fn as_vector_mut(&mut self) -> &mut Vector3<f64>
Get a mutable reference to the inner Vector3 storing the data
Sourcepub fn ecef_vector_at(&self, ref_ecef: &ECEF) -> ECEF
pub fn ecef_vector_at(&self, ref_ecef: &ECEF) -> ECEF
Rotate a local NED vector into a ECEF vector, at a given
reference point. This is approporiate for converting velocity vectors.
This is the inverse of ECEF::ned_vector_at.
Trait Implementations§
Source§impl PartialOrd for NED
impl PartialOrd for NED
impl Copy for NED
impl StructuralPartialEq for NED
Auto Trait Implementations§
impl Freeze for NED
impl RefUnwindSafe for NED
impl Send for NED
impl Sync for NED
impl Unpin for NED
impl UnwindSafe for NED
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.