[][src]Struct mint::EulerAngles

#[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:

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: Copy, B: Copy> Copy for EulerAngles<T, B>[src]

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

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

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

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

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

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

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

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

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

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

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

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

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

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

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

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

Auto Trait Implementations

impl<T, B> Unpin for EulerAngles<T, B> where
    B: Unpin,
    T: Unpin

impl<T, B> Sync for EulerAngles<T, B> where
    B: Sync,
    T: Sync

impl<T, B> Send for EulerAngles<T, B> where
    B: Send,
    T: Send

impl<T, B> UnwindSafe for EulerAngles<T, B> where
    B: UnwindSafe,
    T: UnwindSafe

impl<T, B> RefUnwindSafe for EulerAngles<T, B> where
    B: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]