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] (pitch).
b: T
Second angle of rotation around in range [-pi/2, pi/2] (yaw).
c: T
Third angle of rotation in range [-pi, pi] (roll).
marker: PhantomData<B>
Marker for the phantom basis.
Trait Implementations
impl<T: Clone, B: Clone> Clone for EulerAngles<T, B>
[src]
impl<T: Clone, B: Clone> Clone for EulerAngles<T, B>
fn clone(&self) -> EulerAngles<T, B>
[src]
fn clone(&self) -> EulerAngles<T, B>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<T: Copy, B: Copy> Copy for EulerAngles<T, B>
[src]
impl<T: Copy, B: Copy> Copy for EulerAngles<T, B>
impl<T: Debug, B: Debug> Debug for EulerAngles<T, B>
[src]
impl<T: Debug, B: Debug> Debug for EulerAngles<T, B>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Hash, B: Hash> Hash for EulerAngles<T, B>
[src]
impl<T: Hash, B: Hash> Hash for EulerAngles<T, B>
fn hash<__HTB: Hasher>(&self, state: &mut __HTB)
[src]
fn hash<__HTB: Hasher>(&self, state: &mut __HTB)
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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: PartialEq, B: PartialEq> PartialEq for EulerAngles<T, B>
[src]
impl<T: PartialEq, B: PartialEq> PartialEq for EulerAngles<T, B>
fn eq(&self, other: &EulerAngles<T, B>) -> bool
[src]
fn eq(&self, other: &EulerAngles<T, B>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &EulerAngles<T, B>) -> bool
[src]
fn ne(&self, other: &EulerAngles<T, B>) -> bool
This method tests for !=
.
impl<T: PartialOrd, B: PartialOrd> PartialOrd for EulerAngles<T, B>
[src]
impl<T: PartialOrd, B: PartialOrd> PartialOrd for EulerAngles<T, B>
fn partial_cmp(&self, other: &EulerAngles<T, B>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &EulerAngles<T, B>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &EulerAngles<T, B>) -> bool
[src]
fn lt(&self, other: &EulerAngles<T, B>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &EulerAngles<T, B>) -> bool
[src]
fn le(&self, other: &EulerAngles<T, B>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &EulerAngles<T, B>) -> bool
[src]
fn gt(&self, other: &EulerAngles<T, B>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &EulerAngles<T, B>) -> bool
[src]
fn ge(&self, other: &EulerAngles<T, B>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T: Eq, B: Eq> Eq for EulerAngles<T, B>
[src]
impl<T: Eq, B: Eq> Eq for EulerAngles<T, B>
impl<T: Ord, B: Ord> Ord for EulerAngles<T, B>
[src]
impl<T: Ord, B: Ord> Ord for EulerAngles<T, B>
fn cmp(&self, other: &EulerAngles<T, B>) -> Ordering
[src]
fn cmp(&self, other: &EulerAngles<T, B>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<T: Clone, B> From<[T; 3]> for EulerAngles<T, B>
[src]
impl<T: Clone, B> From<[T; 3]> for EulerAngles<T, B>
impl<T, B> Into<[T; 3]> for EulerAngles<T, B>
[src]
impl<T, B> Into<[T; 3]> for EulerAngles<T, B>
impl<T> From<EulerAngles<T, IntraXYZ>> for EulerAngles<T, ExtraZYX>
[src]
impl<T> From<EulerAngles<T, IntraXYZ>> for EulerAngles<T, ExtraZYX>
fn from(other: EulerAngles<T, IntraXYZ>) -> Self
[src]
fn from(other: EulerAngles<T, IntraXYZ>) -> Self
Performs the conversion.
impl<T> From<EulerAngles<T, ExtraZYX>> for EulerAngles<T, IntraXYZ>
[src]
impl<T> From<EulerAngles<T, ExtraZYX>> for EulerAngles<T, IntraXYZ>
fn from(other: EulerAngles<T, ExtraZYX>) -> Self
[src]
fn from(other: EulerAngles<T, ExtraZYX>) -> Self
Performs the conversion.
impl<T> From<EulerAngles<T, IntraZXZ>> for EulerAngles<T, ExtraZXZ>
[src]
impl<T> From<EulerAngles<T, IntraZXZ>> for EulerAngles<T, ExtraZXZ>
fn from(other: EulerAngles<T, IntraZXZ>) -> Self
[src]
fn from(other: EulerAngles<T, IntraZXZ>) -> Self
Performs the conversion.
impl<T> From<EulerAngles<T, ExtraZXZ>> for EulerAngles<T, IntraZXZ>
[src]
impl<T> From<EulerAngles<T, ExtraZXZ>> for EulerAngles<T, IntraZXZ>
fn from(other: EulerAngles<T, ExtraZXZ>) -> Self
[src]
fn from(other: EulerAngles<T, ExtraZXZ>) -> Self
Performs the conversion.
impl<T> From<EulerAngles<T, IntraZYX>> for EulerAngles<T, ExtraXYZ>
[src]
impl<T> From<EulerAngles<T, IntraZYX>> for EulerAngles<T, ExtraXYZ>
fn from(other: EulerAngles<T, IntraZYX>) -> Self
[src]
fn from(other: EulerAngles<T, IntraZYX>) -> Self
Performs the conversion.
impl<T> From<EulerAngles<T, ExtraXYZ>> for EulerAngles<T, IntraZYX>
[src]
impl<T> From<EulerAngles<T, ExtraXYZ>> for EulerAngles<T, IntraZYX>
fn from(other: EulerAngles<T, ExtraXYZ>) -> Self
[src]
fn from(other: EulerAngles<T, ExtraXYZ>) -> Self
Performs the conversion.
Auto Trait Implementations
impl<T, B> Send for EulerAngles<T, B> where
B: Send,
T: Send,
impl<T, B> Send for EulerAngles<T, B> where
B: Send,
T: Send,
impl<T, B> Sync for EulerAngles<T, B> where
B: Sync,
T: Sync,
impl<T, B> Sync for EulerAngles<T, B> where
B: Sync,
T: Sync,