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.

Methods

impl<N> ENU<N>
[src]

fn new(e: N, n: N, u: N) -> ENU<N>

Crate a new ENU vector

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

fn east(&self) -> N

Get the East component of this vector

fn north(&self) -> N

Get the North component of this vector

fn up(&self) -> N

Get the Up component of this vector

Trait Implementations

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

fn eq(&self, __arg_0: &ENU<N>) -> bool

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

fn ne(&self, __arg_0: &ENU<N>) -> bool

This method tests for !=.

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

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

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

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

fn from(n: NED<N>) -> ENU<N>

Performs the conversion.

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

type Output = ENU<N>

The resulting type after applying the + operator

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

The method for the + operator

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

fn add_assign(&mut self, right: ENU<N>)

The method for the += operator

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

type Output = ENU<N>

The resulting type after applying the - operator

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

The method for the - operator

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

fn sub_assign(&mut self, right: ENU<N>)

The method for the -= operator

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

type Output = ENU<N>

The resulting type after applying the * operator

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

The method for the * operator

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

fn mul_assign(&mut self, right: N)

The method for the *= operator

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

type Output = ENU<N>

The resulting type after applying the / operator

fn div(self, right: N) -> Self

The method for the / operator

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

fn div_assign(&mut self, right: N)

The method for the /= operator

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

fn norm_squared(&self) -> N

Computes the squared norm of self. Read more

fn normalize(&self) -> Self

Gets the normalized version of a copy of v.

fn normalize_mut(&mut self) -> N

Normalizes self.

fn norm(&self) -> N

Computes the norm of self.