[][src]Struct batbox::Quat

#[repr(C)]pub struct Quat<T> {
    pub i: T,
    pub j: T,
    pub k: T,
    pub w: T,
}

Fields

i: Tj: Tk: Tw: T

Implementations

impl<T> Quat<T>[src]

pub fn map<U, F: Fn(T) -> U>(self, f: F) -> Quat<U>[src]

impl<T: Float> Quat<T>[src]

pub fn identity() -> Self[src]

pub fn from_axis_angle(axis: Vec3<T>, angle: T) -> Self[src]

pub fn len(self) -> T[src]

pub fn len_sqr(self) -> T[src]

pub fn normalize(self) -> Self[src]

pub fn lerp(v0: Self, v1: Self, t: T) -> Self[src]

Trait Implementations

impl<T: Num> Add<Quat<T>> for Quat<T>[src]

type Output = Self

The resulting type after applying the + operator.

impl<T: Clone> Clone for Quat<T>[src]

impl<T: Copy> Copy for Quat<T>[src]

impl<T: Debug> Debug for Quat<T>[src]

impl<'de, T> Deserialize<'de> for Quat<T> where
    T: Deserialize<'de>, 
[src]

impl<T: Float> Div<T> for Quat<T>[src]

type Output = Self

The resulting type after applying the / operator.

impl<T: Float> DivAssign<T> for Quat<T>[src]

impl<T: Float> From<Quat<T>> for Mat4<T>[src]

impl<T: Float> Mul<Quat<T>> for Quat<T>[src]

type Output = Self

The resulting type after applying the * operator.

impl<T: Float> Mul<T> for Quat<T>[src]

type Output = Self

The resulting type after applying the * operator.

impl<T: Float> MulAssign<Quat<T>> for Quat<T>[src]

impl<T: Float> MulAssign<T> for Quat<T>[src]

impl<T: Neg<Output = T>> Neg for Quat<T>[src]

type Output = Self

The resulting type after applying the - operator.

impl<T> Serialize for Quat<T> where
    T: Serialize
[src]

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for Quat<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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,