pub struct Rotation3D {
pub w: f32,
pub x: f32,
pub y: f32,
pub z: f32,
}Expand description
Joint rotation (quaternion representation)
Fields§
§w: f32§x: f32§y: f32§z: f32Implementations§
Source§impl Rotation3D
impl Rotation3D
pub fn identity() -> Self
pub fn from_euler(yaw: f32, pitch: f32, roll: f32) -> Self
Sourcepub fn slerp(&self, other: &Rotation3D, t: f32) -> Rotation3D
pub fn slerp(&self, other: &Rotation3D, t: f32) -> Rotation3D
Spherical linear interpolation
Trait Implementations§
Source§impl Clone for Rotation3D
impl Clone for Rotation3D
Source§fn clone(&self) -> Rotation3D
fn clone(&self) -> Rotation3D
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Rotation3D
impl Debug for Rotation3D
Source§impl Default for Rotation3D
impl Default for Rotation3D
impl Copy for Rotation3D
Auto Trait Implementations§
impl Freeze for Rotation3D
impl RefUnwindSafe for Rotation3D
impl Send for Rotation3D
impl Sync for Rotation3D
impl Unpin for Rotation3D
impl UnsafeUnpin for Rotation3D
impl UnwindSafe for Rotation3D
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