Struct nav_types::NED [] [src]

pub struct NED<N>(_);

North East Down vector

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

Methods

impl<N> NED<N>
[src]

fn new(n: N, e: N, d: N) -> NED<N>

Create a new NED vector

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

fn north(&self) -> N

Get the North component of this vector

fn east(&self) -> N

Get the East component of this vector

fn down(&self) -> N

Get the Down component of this vector

Trait Implementations

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

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

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

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

This method tests for !=.

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

fn clone(&self) -> NED<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 NED<N>
[src]

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

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

Formats the value using the given formatter.

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

fn from(e: ENU<N>) -> Self

Performs the conversion.

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

type Output = NED<N>

The resulting type after applying the + operator

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

The method for the + operator

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

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

The method for the += operator

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

type Output = NED<N>

The resulting type after applying the - operator

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

The method for the - operator

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

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

The method for the -= operator

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

type Output = NED<N>

The resulting type after applying the * operator

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

The method for the * operator

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

fn mul_assign(&mut self, right: N)

The method for the *= operator

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

type Output = NED<N>

The resulting type after applying the / operator

fn div(self, right: N) -> NED<N>

The method for the / operator

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

fn div_assign(&mut self, right: N)

The method for the /= operator

impl<N: BaseFloat> Norm<N> for NED<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.