[−][src]Struct nav_types::ENU
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.
fn add(self, right: T) -> Self::Output
[src]
impl<N: RealField + Copy + AddAssign<N>, T: Into<ENU<N>>> AddAssign<T> for ENU<N>
[src]
fn add_assign(&mut self, right: T)
[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.
fn div(self, right: N) -> Self::Output
[src]
impl<N: RealField + Copy + DivAssign<N>> DivAssign<N> for ENU<N>
[src]
fn div_assign(&mut self, right: N)
[src]
impl<N: RealField + Copy + Neg<Output = N>> From<NED<N>> for ENU<N>
[src]
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.
fn mul(self, right: N) -> Self::Output
[src]
impl<N: RealField + Copy + MulAssign<N>> MulAssign<N> for ENU<N>
[src]
fn mul_assign(&mut self, right: 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.
fn sub(self, right: T) -> Self::Output
[src]
impl<N: RealField + Copy + SubAssign<N>, T: Into<ENU<N>>> SubAssign<T> for ENU<N>
[src]
fn sub_assign(&mut self, right: T)
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for ENU<N> where
N: RefUnwindSafe + Scalar,
N: RefUnwindSafe + Scalar,
impl<N> Send for ENU<N> where
N: Scalar,
N: Scalar,
impl<N> Sync for ENU<N> where
N: Scalar,
N: Scalar,
impl<N> Unpin for ENU<N> where
N: Scalar + Unpin,
N: Scalar + Unpin,
impl<N> UnwindSafe for ENU<N> where
N: Scalar + UnwindSafe,
N: Scalar + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, Right> ClosedAdd<Right> for T where
T: Add<Right, Output = T> + AddAssign<Right>,
T: Add<Right, Output = T> + AddAssign<Right>,
impl<T, Right> ClosedDiv<Right> for T where
T: Div<Right, Output = T> + DivAssign<Right>,
T: Div<Right, Output = T> + DivAssign<Right>,
impl<T, Right> ClosedMul<Right> for T where
T: Mul<Right, Output = T> + MulAssign<Right>,
T: Mul<Right, Output = T> + MulAssign<Right>,
impl<T, Right> ClosedSub<Right> for T where
T: Sub<Right, Output = T> + SubAssign<Right>,
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]
U: From<T>,
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]
T: PartialEq<T> + Copy + Any + Debug,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,