Struct Xyz

Source
pub struct Xyz {
    pub x: Meters,
    pub y: Meters,
    pub z: Meters,
}
Expand description

Xyz is the earth-centric Xyz point system.

{ x: 0.0, y: 0.0, z: 0.0 } is the center of the CoordinateSystem (which is to say, inside Earth’s Core). X/Y/Z coordinates are cartesian, and as they grow larger in absolute value, will get further from the center of Earth.

Xyz locations can be turned into points in reference to Earth’s ellipsoid by using some CoordinateSystem, such as Wgs84, either directly or via Lle.

Fields§

§x: Meters

Distance from the center of the ECEF coordinate system. The X axis intersects the equator along the semi-major axis.

§y: Meters

Distance from the center of the ECEF coordinate system. The Y axis intersects the equator along the semi-minor axis.

§z: Meters

Distance from the center of the ECEF coordinate system. The Z axis intersects the north and south poles.

Trait Implementations§

Source§

impl Clone for Xyz

Source§

fn clone(&self) -> Xyz

Returns a copy 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 Xyz

Source§

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

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

impl<CoordinateSystem, AngularMeasure> From<Lle<CoordinateSystem, AngularMeasure>> for Xyz
where Radians: From<AngularMeasure> + Copy, AngularMeasure: From<Radians> + Copy, CoordinateSystem: CoordinateSystem<AngularMeasure>,

Source§

fn from(lle: Lle<CoordinateSystem, AngularMeasure>) -> Self

Convert some Lle into an Xyz coordinate using Lle’s CoordinateSystem.

Source§

impl<CoordinateSystem, AngularMeasure> From<Xyz> for Lle<CoordinateSystem, AngularMeasure>
where Radians: From<AngularMeasure> + Copy, AngularMeasure: From<Radians> + Copy, CoordinateSystem: CoordinateSystem<AngularMeasure>,

Source§

fn from(xyz: Xyz) -> Self

Convert some Xyz into an Lle coordinate using Lle’s CoordinateSystem.

Source§

impl PartialEq for Xyz

Source§

fn eq(&self, other: &Xyz) -> 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 Xyz

Source§

impl StructuralPartialEq for Xyz

Auto Trait Implementations§

§

impl Freeze for Xyz

§

impl RefUnwindSafe for Xyz

§

impl Send for Xyz

§

impl Sync for Xyz

§

impl Unpin for Xyz

§

impl UnwindSafe for Xyz

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.