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<EulerAxisRotation> for EulerAxisRotation
impl PartialEq<EulerAxisRotation> for EulerAxisRotation
source§fn eq(&self, other: &EulerAxisRotation) -> bool
fn eq(&self, other: &EulerAxisRotation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.