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]
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: Debug> Debug for ENU<N>
[src]
impl<N: Copy> Copy for ENU<N>
[src]
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: 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: 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
fn add(self, right: T) -> Self::Output
The method for the +
operator
impl<N: Copy + AddAssign<N>, T: Into<ENU<N>>> AddAssign<T> for ENU<N>
[src]
fn add_assign(&mut self, right: T)
The method for the +=
operator
impl<N: 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
fn sub(self, right: T) -> Self::Output
The method for the -
operator
impl<N: Copy + SubAssign<N>, T: Into<ENU<N>>> SubAssign<T> for ENU<N>
[src]
fn sub_assign(&mut self, right: T)
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) -> Self::Output
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::Output
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 for ENU<N>
[src]
type NormType = N
The scalar type for the norm (i.e. the undelying field).
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
. Read more
fn normalize_mut(&mut self) -> N
Normalizes self
. Read more
fn try_normalize(&self, min_norm: Self::NormType) -> Option<Self>
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
fn try_normalize_mut(
&mut self,
min_norm: Self::NormType
) -> Option<Self::NormType>
&mut self,
min_norm: Self::NormType
) -> Option<Self::NormType>
Normalized v
or does nothing if the vector has a norm smaller or equal to min_norm
. Read more
fn norm(&self) -> Self::NormType
Computes the norm of self
.