pub struct EulerAxisRotation {
pub axis: Vec3,
pub rotation: f64,
}
Expand description
See Wikipedia for more info.
Fields§
§axis: Vec3
The Euler axis
rotation: f64
Rotation around Self::axis
, in radians.
Implementations§
source§impl EulerAxisRotation
impl EulerAxisRotation
pub fn to_rotation_matrix(self) -> Matrix3x3
Trait Implementations§
source§impl Clone for EulerAxisRotation
impl Clone for EulerAxisRotation
source§fn clone(&self) -> EulerAxisRotation
fn clone(&self) -> EulerAxisRotation
Returns a copy 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 EulerAxisRotation
impl Debug for EulerAxisRotation
source§impl PartialEq for EulerAxisRotation
impl PartialEq for EulerAxisRotation
impl Copy for EulerAxisRotation
impl StructuralPartialEq for EulerAxisRotation
Auto Trait Implementations§
impl Freeze for EulerAxisRotation
impl RefUnwindSafe for EulerAxisRotation
impl Send for EulerAxisRotation
impl Sync for EulerAxisRotation
impl Unpin for EulerAxisRotation
impl UnwindSafe for EulerAxisRotation
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)