Struct nav_types::ENU [] [src]

pub struct ENU<N>(_);

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> ENU<N>
[src]

Crate a new ENU vector

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

Get the East component of this vector

Get the North component of this vector

Get the Up component of this vector

Trait Implementations

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

Formats the value using the given formatter.

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

The resulting type after applying the + operator

The method for the + operator

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

The method for the += operator

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

The resulting type after applying the - operator

The method for the - operator

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

The method for the -= operator

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

The resulting type after applying the * operator

The method for the * operator

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

The method for the *= operator

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

The resulting type after applying the / operator

The method for the / operator

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

The method for the /= operator

impl<N: BaseFloat> Norm for ENU<N>
[src]

The scalar type for the norm (i.e. the undelying field).

Computes the squared norm of self. Read more

Gets the normalized version of a copy of v. Read more

Normalizes self. Read more

Gets the normalized version of a copy of v or None if the vector has a norm smaller or equal to min_norm. In particular, .try_normalize(0.0) returns None if the norm is exactly zero. Read more

Normalized v or does nothing if the vector has a norm smaller or equal to min_norm. Read more

Computes the norm of self.

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

Convert NED vectors into ENU