[][src]Struct nova_math::quaternion::TQuat

#[repr(align(16))]pub struct TQuat<T: Real> { /* fields omitted */ }

Implementations

impl<T: Real> TQuat<T>[src]

pub fn new(scalar: T, vector: TVec3<T>) -> Self[src]

pub fn identity() -> Self[src]

pub fn from_euler_angles(angles: TVec3<T>) -> Self[src]

pub fn from_angle_axis(angle: T, axis: TVec3<T>) -> TQuat<T>[src]

pub fn as_angle_axis(&self) -> (T, TVec3<T>)[src]

pub fn conjugate(&self) -> TQuat<T>[src]

pub fn scalar(&self) -> T[src]

pub fn scalar_mut(&mut self) -> &mut T[src]

pub fn vector(&self) -> TVec3<T>[src]

Trait Implementations

impl<T: Clone + Real> Clone for TQuat<T>[src]

impl<T: Copy + Real> Copy for TQuat<T>[src]

impl<T: Debug + Real> Debug for TQuat<T>[src]

impl<T: Real> Into<TMat4x4<T>> for TQuat<T>[src]

impl<T: Real> Inverse for TQuat<T>[src]

impl<T: Real> InverseAssign for TQuat<T>[src]

impl<T: Real> Mul<TQuat<T>> for TQuat<T>[src]

type Output = TQuat<T>

The resulting type after applying the * operator.

impl<T: Real> Mul<TVec3<T>> for TQuat<T>[src]

type Output = TVec3<T>

The resulting type after applying the * operator.

impl<T: Real> MulAssign<TQuat<T>> for TQuat<T>[src]

impl<T: Real> Normalize for TQuat<T>[src]

impl<T: Real> NormalizeAssign for TQuat<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for TQuat<T> where
    T: RefUnwindSafe

impl<T> Send for TQuat<T> where
    T: Send

impl<T> Sync for TQuat<T> where
    T: Sync

impl<T> Unpin for TQuat<T> where
    T: Unpin

impl<T> UnwindSafe for TQuat<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.