pub struct CoordinateFrame { /* private fields */ }Expand description
A right-handed orthonormal frame with its origin in canonical metres.
Implementations§
Source§impl CoordinateFrame
impl CoordinateFrame
Sourcepub fn try_new(
origin_metres: [f64; 3],
x: MetricDirection,
y: MetricDirection,
z: MetricDirection,
) -> Result<Self, CoordinateSystemError>
pub fn try_new( origin_metres: [f64; 3], x: MetricDirection, y: MetricDirection, z: MetricDirection, ) -> Result<Self, CoordinateSystemError>
A frame; the origin must be finite and the axes a right-handed orthonormal triple.
Sourcepub fn origin_metres(&self) -> [f64; 3]
pub fn origin_metres(&self) -> [f64; 3]
The origin, in canonical metres.
Sourcepub fn axes(&self) -> [MetricDirection; 3]
pub fn axes(&self) -> [MetricDirection; 3]
The X, Y and Z axes.
Trait Implementations§
Source§impl Clone for CoordinateFrame
impl Clone for CoordinateFrame
impl Copy for CoordinateFrame
Source§impl Debug for CoordinateFrame
impl Debug for CoordinateFrame
Source§impl PartialEq for CoordinateFrame
impl PartialEq for CoordinateFrame
impl StructuralPartialEq for CoordinateFrame
Auto Trait Implementations§
impl Freeze for CoordinateFrame
impl RefUnwindSafe for CoordinateFrame
impl Send for CoordinateFrame
impl Sync for CoordinateFrame
impl Unpin for CoordinateFrame
impl UnsafeUnpin for CoordinateFrame
impl UnwindSafe for CoordinateFrame
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