pub trait CoordinateFrame {
type Type;
const COORDINATE_FRAME: CoordinateFrameType;
Show 16 methods
// Required methods
fn coordinate_frame(&self) -> CoordinateFrameType;
fn to_ned(&self) -> NorthEastDown<Self::Type>
where Self::Type: Copy + SaturatingNeg<Output = Self::Type>;
fn to_enu(&self) -> EastNorthUp<Self::Type>
where Self::Type: Copy + SaturatingNeg<Output = Self::Type>;
fn x(&self) -> Self::Type
where Self::Type: Clone;
fn y(&self) -> Self::Type
where Self::Type: Clone;
fn z(&self) -> Self::Type
where Self::Type: Clone;
fn x_ref(&self) -> &Self::Type;
fn y_ref(&self) -> &Self::Type;
fn z_ref(&self) -> &Self::Type;
fn x_mut(&mut self) -> &mut Self::Type;
fn y_mut(&mut self) -> &mut Self::Type;
fn z_mut(&mut self) -> &mut Self::Type;
fn right_handed(&self) -> bool;
fn x_axis() -> [Self::Type; 3]
where Self::Type: ZeroOne<Output = Self::Type> + Neg<Output = Self::Type>;
fn y_axis() -> [Self::Type; 3]
where Self::Type: ZeroOne<Output = Self::Type> + Neg<Output = Self::Type>;
fn z_axis() -> [Self::Type; 3]
where Self::Type: ZeroOne<Output = Self::Type> + Neg<Output = Self::Type>;
}
Expand description
A coordinate frame.
Required Associated Constants§
Sourceconst COORDINATE_FRAME: CoordinateFrameType
const COORDINATE_FRAME: CoordinateFrameType
The coordinate frame type.
Required Associated Types§
Required Methods§
Sourcefn coordinate_frame(&self) -> CoordinateFrameType
fn coordinate_frame(&self) -> CoordinateFrameType
Returns the coordinate frame of this instance.
Sourcefn to_ned(&self) -> NorthEastDown<Self::Type>
fn to_ned(&self) -> NorthEastDown<Self::Type>
Converts this type to a NorthEastDown
instance.
Sourcefn to_enu(&self) -> EastNorthUp<Self::Type>
fn to_enu(&self) -> EastNorthUp<Self::Type>
Converts this type to an EastNorthUp
instance.
Sourcefn x_mut(&mut self) -> &mut Self::Type
fn x_mut(&mut self) -> &mut Self::Type
Gets a mutable reference to the value of the first dimension.
Sourcefn y_mut(&mut self) -> &mut Self::Type
fn y_mut(&mut self) -> &mut Self::Type
Gets a mutable reference to the value of the second dimension.
Sourcefn z_mut(&mut self) -> &mut Self::Type
fn z_mut(&mut self) -> &mut Self::Type
Gets a mutable reference to the value of the third dimension.
Sourcefn right_handed(&self) -> bool
fn right_handed(&self) -> bool
Indicates whether this coordinate system is right-handed or left-handed.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.