Struct mint::EulerAngles
[−]
[src]
#[repr(C)]pub struct EulerAngles<T, B> { pub a: T, pub b: T, pub c: T, pub marker: PhantomData<B>, }
Abstract set of Euler angles in 3D space. The basis of angles
is defined by the generic parameter B
.
Note: there are multiple notations of Euler angles. They are split in two groups: - intrinsic (also known as "Tait-Bryan angles"): rotate around local axis - extrinsic (also known as "Proper Euler angles"): rotate around world axis For each interpretation, different axis may be chosen in different order.
Fields
a: T
First angle of rotation in range -pi, pi.
b: T
Second angle of rotation around in range -pi/2, pi/2.
c: T
Third angle of rotation in range -pi, pi.
marker: PhantomData<B>
Marker for the phantom basis.
Trait Implementations
impl<T, B> Ord for EulerAngles<T, B> where
B: Ord,
T: Ord,
[src]
B: Ord,
T: Ord,
fn cmp(&self, __arg_0: &EulerAngles<T, B>) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl<T, B> Copy for EulerAngles<T, B> where
B: Copy,
T: Copy,
[src]
B: Copy,
T: Copy,
impl<T, B> Hash for EulerAngles<T, B> where
B: Hash,
T: Hash,
[src]
B: Hash,
T: Hash,
fn hash<__HTB>(&self, __arg_0: &mut __HTB) where
__HTB: Hasher,
[src]
__HTB: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T, B> Clone for EulerAngles<T, B> where
B: Clone,
T: Clone,
[src]
B: Clone,
T: Clone,
fn clone(&self) -> EulerAngles<T, B>
[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<T, B> Eq for EulerAngles<T, B> where
B: Eq,
T: Eq,
[src]
B: Eq,
T: Eq,
impl<T> From<EulerAngles<T, IntraZYX>> for EulerAngles<T, ExtraXYZ>
[src]
fn from(other: EulerAngles<T, IntraZYX>) -> EulerAngles<T, ExtraXYZ>
[src]
Performs the conversion.
impl<T> From<EulerAngles<T, ExtraXYZ>> for EulerAngles<T, IntraZYX>
[src]
fn from(other: EulerAngles<T, ExtraXYZ>) -> EulerAngles<T, IntraZYX>
[src]
Performs the conversion.
impl<T, B> From<[T; 3]> for EulerAngles<T, B> where
T: Clone,
[src]
T: Clone,
fn from(v: [T; 3]) -> EulerAngles<T, B>
[src]
Performs the conversion.
impl<T> From<EulerAngles<T, IntraXYZ>> for EulerAngles<T, ExtraZYX>
[src]
fn from(other: EulerAngles<T, IntraXYZ>) -> EulerAngles<T, ExtraZYX>
[src]
Performs the conversion.
impl<T> From<EulerAngles<T, IntraZXZ>> for EulerAngles<T, ExtraZXZ>
[src]
fn from(other: EulerAngles<T, IntraZXZ>) -> EulerAngles<T, ExtraZXZ>
[src]
Performs the conversion.
impl<T> From<EulerAngles<T, ExtraZXZ>> for EulerAngles<T, IntraZXZ>
[src]
fn from(other: EulerAngles<T, ExtraZXZ>) -> EulerAngles<T, IntraZXZ>
[src]
Performs the conversion.
impl<T> From<EulerAngles<T, ExtraZYX>> for EulerAngles<T, IntraXYZ>
[src]
fn from(other: EulerAngles<T, ExtraZYX>) -> EulerAngles<T, IntraXYZ>
[src]
Performs the conversion.
impl<T, B> PartialEq<EulerAngles<T, B>> for EulerAngles<T, B> where
B: PartialEq<B>,
T: PartialEq<T>,
[src]
B: PartialEq<B>,
T: PartialEq<T>,
fn eq(&self, __arg_0: &EulerAngles<T, B>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EulerAngles<T, B>) -> bool
[src]
This method tests for !=
.
impl<T, B> Debug for EulerAngles<T, B> where
B: Debug,
T: Debug,
[src]
B: Debug,
T: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<T, B> Into<[T; 3]> for EulerAngles<T, B>
[src]
impl<T, B> PartialOrd<EulerAngles<T, B>> for EulerAngles<T, B> where
B: PartialOrd<B>,
T: PartialOrd<T>,
[src]
B: PartialOrd<B>,
T: PartialOrd<T>,
fn partial_cmp(&self, __arg_0: &EulerAngles<T, B>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &EulerAngles<T, B>) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &EulerAngles<T, B>) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &EulerAngles<T, B>) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &EulerAngles<T, B>) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more