[][src]Struct nav_types::ENU

pub struct ENU<N: RealField>(_);

East North Up vector

This struct represents a vector in the ENU coordinate system. See: ENU for a general description.

Note

ENU implements Into on all operations. This means that any vector that can be converted to ENU with a From implementation will automatically be able to work with ENU at the cost of the Into conversion.

Methods

impl<N: RealField> ENU<N>[src]

pub fn new(e: N, n: N, u: N) -> ENU<N>[src]

Create a new ENU vector

pub fn norm(&self) -> N[src]

Computes the L2 (Euclidean) norm of this vector

impl<N: RealField + Copy> ENU<N>[src]

pub fn east(&self) -> N[src]

Get the East component of this vector

pub fn north(&self) -> N[src]

Get the North component of this vector

pub fn up(&self) -> N[src]

Get the Up component of this vector

Trait Implementations

impl<N: RealField + Copy + Add<N, Output = N>, T: Into<ENU<N>>> Add<T> for ENU<N>[src]

type Output = ENU<N>

The resulting type after applying the + operator.

impl<N: RealField + Copy + AddAssign<N>, T: Into<ENU<N>>> AddAssign<T> for ENU<N>[src]

impl<N: Clone + RealField> Clone for ENU<N>[src]

impl<N: Copy + RealField> Copy for ENU<N>[src]

impl<N: Debug + RealField> Debug for ENU<N>[src]

impl<N: RealField + Copy + Div<N, Output = N>> Div<N> for ENU<N>[src]

type Output = ENU<N>

The resulting type after applying the / operator.

impl<N: RealField + Copy + DivAssign<N>> DivAssign<N> for ENU<N>[src]

impl<N: RealField + Copy + Neg<Output = N>> From<NED<N>> for ENU<N>[src]

fn from(e: NED<N>) -> Self[src]

Convert NED vectors into ENU

impl<N: RealField + Copy + Mul<N, Output = N>> Mul<N> for ENU<N>[src]

type Output = ENU<N>

The resulting type after applying the * operator.

impl<N: RealField + Copy + MulAssign<N>> MulAssign<N> for ENU<N>[src]

impl<N: PartialEq + RealField> PartialEq<ENU<N>> for ENU<N>[src]

impl<N: RealField> StructuralPartialEq for ENU<N>[src]

impl<N: RealField + Copy + Sub<N, Output = N>, T: Into<ENU<N>>> Sub<T> for ENU<N>[src]

type Output = ENU<N>

The resulting type after applying the - operator.

impl<N: RealField + Copy + SubAssign<N>, T: Into<ENU<N>>> SubAssign<T> for ENU<N>[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for ENU<N> where
    N: RefUnwindSafe + Scalar

impl<N> Send for ENU<N> where
    N: Scalar

impl<N> Sync for ENU<N> where
    N: Scalar

impl<N> Unpin for ENU<N> where
    N: Scalar + Unpin

impl<N> UnwindSafe for ENU<N> where
    N: Scalar + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, Right> ClosedDiv<Right> for T where
    T: Div<Right, Output = T> + DivAssign<Right>, 

impl<T, Right> ClosedMul<Right> for T where
    T: Mul<Right, Output = T> + MulAssign<Right>, 

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,