Skip to main content

LocalFrame

Struct LocalFrame 

Source
pub struct LocalFrame { /* private fields */ }
Expand description

NED frame anchored at a point.

Displacements are computed via ECEF, exact at any distance: no flat-Earth approximation; curvature appears as a growing down component for level points further from the origin.

Implementations§

Source§

impl LocalFrame

Source

pub fn at(origin: GeodeticPoint, ellipsoid: &Ellipsoid) -> Result<Self>

Frame with origin at a point on an ellipsoid.

§Errors

As EcefPoint::from_geodetic: the origin height must be ellipsoidal.

Source

pub const fn origin(&self) -> GeodeticPoint

Origin.

Source

pub const fn ellipsoid(&self) -> &Ellipsoid

Ellipsoid.

Source

pub fn ned_of(&self, point: GeodeticPoint) -> Result<Vector3<Ned, Distance>>

NED displacement of a point from the origin.

§Errors

As EcefPoint::from_geodetic: the height must be ellipsoidal.

Source

pub fn enu_of(&self, point: GeodeticPoint) -> Result<Vector3<Enu, Distance>>

ENU displacement of a point from the origin.

§Errors

As LocalFrame::ned_of.

Source

pub fn point_from_ned( &self, displacement: Vector3<Ned, Distance>, ) -> Result<GeodeticPoint>

Point at a NED displacement from the origin.

Inverse of LocalFrame::ned_of; round trip holds to 0.1 mm for terrestrial displacements (property-tested).

§Errors

As EcefPoint::to_geodetic; not reachable for terrestrial displacements.

Source

pub fn point_from_enu( &self, displacement: Vector3<Enu, Distance>, ) -> Result<GeodeticPoint>

Point at an ENU displacement from the origin.

§Errors

As LocalFrame::point_from_ned.

Trait Implementations§

Source§

impl Clone for LocalFrame

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for LocalFrame

Source§

impl Debug for LocalFrame

Source§

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

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

impl PartialEq for LocalFrame

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for LocalFrame

Auto Trait Implementations§

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.