[][src]Struct iomath::types::basic_types::TQuaternion

pub struct TQuaternion<T> {
    pub w: T,
    pub x: T,
    pub y: T,
    pub z: T,
}

Fields

w: Tx: Ty: Tz: T

Implementations

impl<T> TQuaternion<T> where
    T: Zero<T> + One<T>, 
[src]

pub fn identity() -> Self[src]

Creates TQuaternion whose members are (w: 1, x: 0, y: 0, z: 0)

use iomath::quaternions::Quaternion;
 
let quaternion = Quaternion::identity();
assert_eq!(quaternion, Quaternion { w: 1.0, x: 0.0, y: 0.0, z: 0.0 });

Trait Implementations

impl<T> Debug for TQuaternion<T> where
    T: Debug
[src]

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

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

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

impl<T> PartialEq<TQuaternion<T>> for TQuaternion<T> where
    T: PartialEq
[src]

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for TQuaternion<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, 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.