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
impl LocalFrame
Sourcepub fn at(origin: GeodeticPoint, ellipsoid: &Ellipsoid) -> Result<Self>
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.
Sourcepub const fn origin(&self) -> GeodeticPoint
pub const fn origin(&self) -> GeodeticPoint
Origin.
Sourcepub fn ned_of(&self, point: GeodeticPoint) -> Result<Vector3<Ned, Distance>>
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.
Sourcepub fn point_from_ned(
&self,
displacement: Vector3<Ned, Distance>,
) -> Result<GeodeticPoint>
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.
Sourcepub fn point_from_enu(
&self,
displacement: Vector3<Enu, Distance>,
) -> Result<GeodeticPoint>
pub fn point_from_enu( &self, displacement: Vector3<Enu, Distance>, ) -> Result<GeodeticPoint>
Trait Implementations§
Source§impl Clone for LocalFrame
impl Clone for LocalFrame
impl Copy for LocalFrame
Source§impl Debug for LocalFrame
impl Debug for LocalFrame
Source§impl PartialEq for LocalFrame
impl PartialEq for LocalFrame
impl StructuralPartialEq for LocalFrame
Auto Trait Implementations§
impl Freeze for LocalFrame
impl RefUnwindSafe for LocalFrame
impl Send for LocalFrame
impl Sync for LocalFrame
impl Unpin for LocalFrame
impl UnsafeUnpin for LocalFrame
impl UnwindSafe for LocalFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more