Struct madgwick::Quaternion
[−]
[src]
pub struct Quaternion(pub f32, pub f32, pub f32, pub f32);
Quaternion
Methods
impl Quaternion
[src]
pub fn conj(self) -> Self
[src]
Returns the conjugate of this quaternion
pub fn norm(self) -> f32
[src]
Returns the norm of this quaternion
Trait Implementations
impl Clone for Quaternion
[src]
fn clone(&self) -> Quaternion
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Quaternion
[src]
impl Debug for Quaternion
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Quaternion
[src]
fn eq(&self, __arg_0: &Quaternion) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Quaternion) -> bool
[src]
This method tests for !=
.
impl AddAssign<Quaternion> for Quaternion
[src]
fn add_assign(&mut self, rhs: Quaternion)
[src]
Performs the +=
operation.
impl MulAssign<f32> for Quaternion
[src]
fn mul_assign(&mut self, k: f32)
[src]
Performs the *=
operation.
impl SubAssign<Quaternion> for Quaternion
[src]
fn sub_assign(&mut self, rhs: Quaternion)
[src]
Performs the -=
operation.
impl Mul<Quaternion> for Quaternion
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, b: Self) -> Self
[src]
Performs the *
operation.
impl Mul<f32> for Quaternion
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, k: f32) -> Self
[src]
Performs the *
operation.
impl Mul<Quaternion> for f32
[src]
type Output = Quaternion
The resulting type after applying the *
operator.
fn mul(self, q: Quaternion) -> Quaternion
[src]
Performs the *
operation.