pub struct Rotor(pub f32x4);
Expand description
The rotor is an entity that represents a rigid rotation about an axis.
Tuple Fields§
§0: f32x4
Implementations§
source§impl Rotor
impl Rotor
pub fn new(ang_rad: f32, x: f32, y: f32, z: f32) -> Rotor
pub fn from_euler_angles(roll: f32, pitch: f32, yaw: f32) -> Rotor
pub fn load_normalized(data: [f32; 4]) -> Rotor
pub fn normalized(&self) -> Rotor
pub fn inverse(&self) -> Rotor
pub fn reverse(&self) -> Rotor
pub fn constrained(&self) -> Rotor
pub fn log(&self) -> Branch
pub fn sqrt(&self) -> Rotor
pub fn approx_eq(&self, other: Rotor, epsilon: f32) -> bool
pub fn scalar(&self) -> f32
pub fn e12(&self) -> f32
pub fn e21(&self) -> f32
pub fn e31(&self) -> f32
pub fn e13(&self) -> f32
pub fn e23(&self) -> f32
pub fn e32(&self) -> f32
Trait Implementations§
source§impl AddAssign<Rotor> for Rotor
impl AddAssign<Rotor> for Rotor
source§fn add_assign(&mut self, r: Self)
fn add_assign(&mut self, r: Self)
Performs the
+=
operation. Read moresource§impl Div<Translator> for Rotor
impl Div<Translator> for Rotor
source§impl DivAssign<f32> for Rotor
impl DivAssign<f32> for Rotor
source§fn div_assign(&mut self, s: f32)
fn div_assign(&mut self, s: f32)
Performs the
/=
operation. Read moresource§impl From<EulerAngles> for Rotor
impl From<EulerAngles> for Rotor
source§fn from(ea: EulerAngles) -> Self
fn from(ea: EulerAngles) -> Self
Converts to this type from the input type.
source§impl From<Rotor> for EulerAngles
impl From<Rotor> for EulerAngles
source§impl Mul<Rotor> for Translator
impl Mul<Rotor> for Translator
source§impl Mul<Translator> for Rotor
impl Mul<Translator> for Rotor
source§impl MulAssign<Rotor> for Motor
impl MulAssign<Rotor> for Motor
source§fn mul_assign(&mut self, r: Rotor)
fn mul_assign(&mut self, r: Rotor)
Performs the
*=
operation. Read moresource§impl MulAssign<f32> for Rotor
impl MulAssign<f32> for Rotor
source§fn mul_assign(&mut self, s: f32)
fn mul_assign(&mut self, s: f32)
Performs the
*=
operation. Read moresource§impl PartialEq<Rotor> for Rotor
impl PartialEq<Rotor> for Rotor
source§impl SubAssign<Rotor> for Rotor
impl SubAssign<Rotor> for Rotor
source§fn sub_assign(&mut self, r: Self)
fn sub_assign(&mut self, r: Self)
Performs the
-=
operation. Read more