Struct Enu

Source
pub struct Enu {
    pub east: Meters,
    pub north: Meters,
    pub up: Meters,
}
Expand description

Enu is East, North, Up in Meters.

East-North-Up are cartesian coordinates rooted at some reference point’s local tangent plane. That reference location is not included in the Enu struct, so re-contextualizing an Enu to a Lle or Xyz requires knowing the point at which the observation was taken from or was in reference to.

These measures are cartesian in the local tangent plane, which is to say, increasing “North” will continue straight ahead, but not following the curve of the Earth – so you’ll slowly get further and further away from Earth’s surface.

Fields§

§east: Meters

East is the distance in the easterly direction on some local tangent plane reference. This may be negative to indicate a westerly distance.

§north: Meters

North is the distance in the northernly direction on some local tangent plane reference. This may be negative to indicate a southern distance.

§up: Meters

Up is the distance above the local tangent plane that intersects with the coordinate system ellipsoid (this is not the same as altitude above the surface, this is elevation above the ellipsoid).

Implementations§

Source§

impl Enu

Source

pub fn to_lle<CoordinateSystem, LleAngularMeasure>( &self, obs: &Lle<CoordinateSystem, LleAngularMeasure>, ) -> Lle<CoordinateSystem, LleAngularMeasure>
where Radians: From<LleAngularMeasure> + Copy, LleAngularMeasure: From<Radians> + Copy, CoordinateSystem: CoordinateSystem<LleAngularMeasure>,

Take some observation (self), and contextualize it into some absolute Lle given some reference point obs that this Aer is in reference to.

Trait Implementations§

Source§

impl Clone for Enu

Source§

fn clone(&self) -> Enu

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Enu

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Aer<Radians>> for Enu

Source§

fn from(aer: Aer<Radians>) -> Self

Convert to Enu cartesian local tangent plane coordinates from an Aer local tangent plane angular measurement in Radians.

Source§

impl From<Aer> for Enu

Source§

fn from(aer: Aer<Degrees>) -> Self

Convert to Enu cartesian local tangent plane coordinates from an Aer local tangent plane angular measurement in Degrees.

Source§

impl From<Enu> for Aer<Degrees>

Source§

fn from(enu: Enu) -> Self

Convert to Aer cartesian local tangent plane angular measurement in Degrees from Enu local tangent plane coordinates.

Source§

impl From<Enu> for Aer<Radians>

Source§

fn from(enu: Enu) -> Self

Convert to Aer cartesian local tangent plane angular measurement in Radians from Enu local tangent plane coordinates.

Source§

impl PartialEq for Enu

Source§

fn eq(&self, other: &Enu) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Enu

Source§

impl StructuralPartialEq for Enu

Auto Trait Implementations§

§

impl Freeze for Enu

§

impl RefUnwindSafe for Enu

§

impl Send for Enu

§

impl Sync for Enu

§

impl Unpin for Enu

§

impl UnwindSafe for Enu

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.