[][src]Struct nav_types::NVector

pub struct NVector<N> { /* fields omitted */ }

N-Vector position

The N-Vector represents unique points on the earth's surface. The advantage of N-Vectors is that they have no inconsistencies around the poles compared to WGS84 Latitude, Longitude format. See: nvector for detailed information.

Methods

impl<N> NVector<N>[src]

pub fn new(vec: Vector3<N>, altitude: N) -> NVector<N>[src]

Create a new NVector

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

pub fn vector(&self) -> Vector3<N>[src]

Get the vector component of this position

pub fn altitude(&self) -> N[src]

Get the altitude of this position

Trait Implementations

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

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

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<N: Float> From<NVector<N>> for ECEF<N>[src]

impl<N: Float> From<WGS84<N>> for NVector<N>[src]

impl<N: Float> From<ECEF<N>> for NVector<N>[src]

impl<N: Float> From<NVector<N>> for WGS84<N>[src]

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

impl<N, T> Sub<T> for NVector<N> where
    N: Float,
    T: Into<ENU<N>>, 
[src]

type Output = NVector<N>

The resulting type after applying the - operator.

impl<N: Float> Sub<NVector<N>> for NVector<N>[src]

type Output = ENU<N>

The resulting type after applying the - operator.

impl<N, T> Add<T> for NVector<N> where
    N: Float,
    T: Into<ENU<N>>, 
[src]

type Output = NVector<N>

The resulting type after applying the + operator.

impl<N, T> AddAssign<T> for NVector<N> where
    N: Float + AddAssign,
    T: Into<ENU<N>>, 
[src]

impl<N, T> SubAssign<T> for NVector<N> where
    N: Float + SubAssign,
    T: Into<ENU<N>>, 
[src]

Auto Trait Implementations

impl<N> Send for NVector<N> where
    N: Send

impl<N> Sync for NVector<N> where
    N: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]