[][src]Struct geng_core::prelude::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>(self, f: F) -> Quat<U> where
    F: Fn(T) -> U, 
[src]

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

pub fn identity() -> Quat<T>[src]

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

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

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

pub fn normalize(self) -> Quat<T>[src]

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

Trait Implementations

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

type Output = Quat<T>

The resulting type after applying the + operator.

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

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

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

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

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

type Output = Quat<T>

The resulting type after applying the / operator.

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

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

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

type Output = Quat<T>

The resulting type after applying the * operator.

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

type Output = Quat<T>

The resulting type after applying the * operator.

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

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

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

type Output = Quat<T>

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> SetParameter for T

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>,