pub struct Rotation {
pub pitch: f32,
pub yaw: f32,
pub roll: f32,
}Fields§
§pitch: f32§yaw: f32§roll: f32Trait Implementations§
Source§impl Delta for Rotation
impl Delta for Rotation
type DeltaType = RotationDelta
Source§fn compute_delta(start: &Self, end: &Self) -> Self::DeltaType
fn compute_delta(start: &Self, end: &Self) -> Self::DeltaType
Computes the delta required to go from
start to end.
start + delta = endSource§fn apply_delta(start: &Self, delta: &Self::DeltaType) -> Self
fn apply_delta(start: &Self, delta: &Self::DeltaType) -> Self
Applies a delta to
start to get end.
start + delta = endSource§impl<'de> Deserialize<'de> for Rotation
impl<'de> Deserialize<'de> for Rotation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Rotation
impl StructuralPartialEq for Rotation
Auto Trait Implementations§
impl Freeze for Rotation
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnwindSafe for Rotation
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