Struct nav_types::ECEF

source ·
pub struct ECEF<N: RealFieldCopy>(_);
Expand description

Earth Centered Earth Fixed position

This struct represents a position in the ECEF coordinate system. See: ECEF for general description.

Implementations§

source§

impl<N: RealFieldCopy> ECEF<N>

source

pub fn new(x: N, y: N, z: N) -> ECEF<N>

Create a new ECEF position

source§

impl<N: RealFieldCopy> ECEF<N>

source

pub fn x(&self) -> N

Get the X component of this position

source

pub fn y(&self) -> N

Get the Y component of this position

source

pub fn z(&self) -> N

Get the Z component of this position

source§

impl<N: RealFieldCopy> ECEF<N>

source

pub fn distance(&self, other: &ECEF<N>) -> Nwhere N: RealFieldCopy,

Euclidean distance between two ECEF positions

Trait Implementations§

source§

impl<N, T> Add<T> for ECEF<N>where N: RealFieldCopy, T: Into<ENU<N>>,

§

type Output = ECEF<N>

The resulting type after applying the + operator.
source§

fn add(self, right: T) -> ECEF<N>

Performs the + operation. Read more
source§

impl<N, T> AddAssign<T> for ECEF<N>where N: RealFieldCopy + AddAssign, T: Into<ENU<N>>,

source§

fn add_assign(&mut self, right: T)

Performs the += operation. Read more
source§

impl<N: Clone + RealFieldCopy> Clone for ECEF<N>

source§

fn clone(&self) -> ECEF<N>

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<N: Debug + RealFieldCopy> Debug for ECEF<N>

source§

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

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

impl<N: RealFieldCopy> From<ECEF<N>> for NVector<N>

source§

fn from(ecef: ECEF<N>) -> NVector<N>

Converts to this type from the input type.
source§

impl<N: RealFieldCopy> From<ECEF<N>> for WGS84<N>

source§

fn from(ecef: ECEF<N>) -> WGS84<N>

Converts to this type from the input type.
source§

impl<N: RealFieldCopy> From<NVector<N>> for ECEF<N>

source§

fn from(f: NVector<N>) -> ECEF<N>

Converts to this type from the input type.
source§

impl<N: RealFieldCopy> From<WGS84<N>> for ECEF<N>

source§

fn from(wgs: WGS84<N>) -> ECEF<N>

Converts to this type from the input type.
source§

impl<N: PartialEq + RealFieldCopy> PartialEq<ECEF<N>> for ECEF<N>

source§

fn eq(&self, other: &ECEF<N>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<N: RealFieldCopy> Sub<ECEF<N>> for ECEF<N>

§

type Output = ENU<N>

The resulting type after applying the - operator.
source§

fn sub(self, right: ECEF<N>) -> ENU<N>

Performs the - operation. Read more
source§

impl<N, T> Sub<T> for ECEF<N>where N: RealFieldCopy, T: Into<ENU<N>>,

§

type Output = ECEF<N>

The resulting type after applying the - operator.
source§

fn sub(self, right: T) -> ECEF<N>

Performs the - operation. Read more
source§

impl<N, T> SubAssign<T> for ECEF<N>where N: RealFieldCopy + SubAssign, T: Into<ENU<N>>,

source§

fn sub_assign(&mut self, right: T)

Performs the -= operation. Read more
source§

impl<N: Copy + RealFieldCopy> Copy for ECEF<N>

source§

impl<N: RealFieldCopy> StructuralPartialEq for ECEF<N>

Auto Trait Implementations§

§

impl<N> RefUnwindSafe for ECEF<N>where N: RefUnwindSafe,

§

impl<N> Send for ECEF<N>

§

impl<N> Sync for ECEF<N>

§

impl<N> Unpin for ECEF<N>where N: Unpin,

§

impl<N> UnwindSafe for ECEF<N>where N: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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> Same<T> for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.
§

impl<T, Right> ClosedAdd<Right> for Twhere T: Add<Right, Output = T> + AddAssign<Right>,

§

impl<T, Right> ClosedSub<Right> for Twhere T: Sub<Right, Output = T> + SubAssign<Right>,

source§

impl<T> Scalar for Twhere T: 'static + Clone + PartialEq<T> + Debug,