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

First angle of rotation in range -pi, pi.

Second angle of rotation around in range -pi/2, pi/2.

Third angle of rotation in range -pi, pi.

Marker for the phantom basis.

Trait Implementations

impl<T, B> Ord for EulerAngles<T, B> where
    B: Ord,
    T: Ord
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

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]

impl<T, B> Hash for EulerAngles<T, B> where
    B: Hash,
    T: Hash
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

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]

[src]

Returns a copy of the value. Read more

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]

impl<T> From<EulerAngles<T, IntraZYX>> for EulerAngles<T, ExtraXYZ>
[src]

[src]

Performs the conversion.

impl<T> From<EulerAngles<T, ExtraXYZ>> for EulerAngles<T, IntraZYX>
[src]

[src]

Performs the conversion.

impl<T, B> From<[T; 3]> for EulerAngles<T, B> where
    T: Clone
[src]

[src]

Performs the conversion.

impl<T> From<EulerAngles<T, IntraXYZ>> for EulerAngles<T, ExtraZYX>
[src]

[src]

Performs the conversion.

impl<T> From<EulerAngles<T, IntraZXZ>> for EulerAngles<T, ExtraZXZ>
[src]

[src]

Performs the conversion.

impl<T> From<EulerAngles<T, ExtraZXZ>> for EulerAngles<T, IntraZXZ>
[src]

[src]

Performs the conversion.

impl<T> From<EulerAngles<T, ExtraZYX>> for EulerAngles<T, IntraXYZ>
[src]

[src]

Performs the conversion.

impl<T, B> PartialEq<EulerAngles<T, B>> for EulerAngles<T, B> where
    B: PartialEq<B>,
    T: PartialEq<T>, 
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T, B> Debug for EulerAngles<T, B> where
    B: Debug,
    T: Debug
[src]

[src]

Formats the value using the given formatter.

impl<T, B> Into<[T; 3]> for EulerAngles<T, B>
[src]

[src]

Performs the conversion.

impl<T, B> PartialOrd<EulerAngles<T, B>> for EulerAngles<T, B> where
    B: PartialOrd<B>,
    T: PartialOrd<T>, 
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more