pub struct Rotation3d { /* private fields */ }Expand description
Normalized 3D rotation applied in a right-handed coordinate system.
Implementations§
Source§impl Rotation3d
impl Rotation3d
Sourcepub fn from_axis_angle(axis: Vec3, radians: f32) -> Result<Self, Pseudo3dError>
pub fn from_axis_angle(axis: Vec3, radians: f32) -> Result<Self, Pseudo3dError>
Builds a rotation around a non-zero finite axis by radians.
Sourcepub fn from_euler_xyz(x: f32, y: f32, z: f32) -> Result<Self, Pseudo3dError>
pub fn from_euler_xyz(x: f32, y: f32, z: f32) -> Result<Self, Pseudo3dError>
Builds a rotation that applies X, then Y, then Z rotations in radians.
Sourcepub fn then(self, next: Self) -> Result<Self, Pseudo3dError>
pub fn then(self, next: Self) -> Result<Self, Pseudo3dError>
Composes rotations so self is applied first and next second.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Rotation3d
Source§impl Debug for Rotation3d
impl Debug for Rotation3d
Source§impl PartialEq for Rotation3d
impl PartialEq for Rotation3d
impl StructuralPartialEq 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