pub struct Euler {
pub heading: f32,
pub pitch: f32,
pub roll: f32,
}Expand description
Normalized object orientation used by the SCS SDK.
heading uses [0.0, 1.0) for [0, 360) degrees and increases
counter-clockwise when viewed from above. pitch normally uses
[-0.25, 0.25] for [-90, 90] degrees. roll normally uses
[-0.5, 0.5] for [-180, 180] degrees.
Fields§
§heading: f32§pitch: f32§roll: f32Trait Implementations§
impl Copy for Euler
Source§impl SdkValue for Euler
impl SdkValue for Euler
Source§const VALUE_TYPE: ValueType = ValueType::Euler
const VALUE_TYPE: ValueType = ValueType::Euler
High-level discriminator retained by type-erased framework descriptors.
Source§const TYPE: ScsValueType = sys::SCS_VALUE_TYPE_EULER
const TYPE: ScsValueType = sys::SCS_VALUE_TYPE_EULER
Numeric discriminator passed across the C ABI.
type Decoded<'a> = Euler
fn decode(value: ValueRef<'_>) -> Option<Self::Decoded<'_>>
impl StructuralPartialEq for Euler
Auto Trait Implementations§
impl Freeze for Euler
impl RefUnwindSafe for Euler
impl Send for Euler
impl Sync for Euler
impl Unpin for Euler
impl UnsafeUnpin for Euler
impl UnwindSafe for Euler
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