[][src]Struct mazth::quat::Quat

pub struct Quat<T> {
    pub _x: T,
    pub _y: T,
    pub _z: T,
    pub _w: T,
}

Fields

_x: T_y: T_z: T_w: T

Methods

impl Quat<f32>[src]

pub fn init() -> Quat<f32>[src]

pub fn init_from_vals_raw(x: f32, y: f32, z: f32, w: f32) -> Quat<f32>[src]

pub fn init_from_vals_normalize(x: f32, y: f32, z: f32, w: f32) -> Quat<f32>[src]

pub fn init_from_vals_auto_w(x: f32, y: f32, z: f32) -> Quat<f32>[src]

pub fn init_from_translation(trans: Mat3x1<f32>) -> Quat<f32>[src]

pub fn to_translation_matrix(&self, row_major: bool) -> Mat4<f32>[src]

pub fn to_rotation_matrix(&self, row_major: bool) -> Mat4<f32>[src]

pub fn to_axis_angle(&self) -> (Mat3x1<f32>, f32)[src]

pub fn init_from_axis_angle_degree(axis_angle: (Mat3x1<f32>, f32)) -> Quat<f32>[src]

pub fn init_from_axis_angle_radian(axis_angle: (Mat3x1<f32>, f32)) -> Quat<f32>[src]

pub fn rotate_vector(&self, p: Mat3x1<f32>) -> Mat3x1<f32>[src]

pub fn reflection_in_plane(&self, p: Mat3x1<f32>) -> Mat3x1<f32>[src]

pub fn parallel_component_of_plane(&self, p: Mat3x1<f32>) -> Mat3x1<f32>[src]

pub fn orthogonal_component_of_plane(&self, p: Mat3x1<f32>) -> Mat3x1<f32>[src]

pub fn add(&self, other: Self) -> Quat<f32>[src]

pub fn minus(&self, other: Self) -> Quat<f32>[src]

pub fn mul(&self, other: Self) -> Quat<f32>[src]

pub fn length_squared(&self) -> f32[src]

pub fn length(&self) -> f32[src]

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

pub fn ln(&self) -> Quat<f32>[src]

pub fn pow(&self, t: f32) -> Quat<f32>[src]

pub fn negate(&self) -> Quat<f32>[src]

pub fn conjugate(&self) -> Quat<f32>[src]

pub fn scale(&self, s: f32) -> Quat<f32>[src]

pub fn inverse(&self) -> Quat<f32>[src]

pub fn interpolate_linear(start: Quat<f32>, end: Quat<f32>, t: f32) -> Quat<f32>[src]

pub fn interpolate_slerp(start: Quat<f32>, end: Quat<f32>, t: f32) -> Quat<f32>[src]

impl Quat<f64>[src]

pub fn init() -> Quat<f64>[src]

pub fn init_from_vals_raw(x: f64, y: f64, z: f64, w: f64) -> Quat<f64>[src]

pub fn init_from_vals_normalize(x: f64, y: f64, z: f64, w: f64) -> Quat<f64>[src]

pub fn init_from_vals_auto_w(x: f64, y: f64, z: f64) -> Quat<f64>[src]

pub fn init_from_translation(trans: Mat3x1<f64>) -> Quat<f64>[src]

pub fn to_translation_matrix(&self, row_major: bool) -> Mat4<f64>[src]

pub fn to_rotation_matrix(&self, row_major: bool) -> Mat4<f64>[src]

pub fn to_axis_angle(&self) -> (Mat3x1<f64>, f64)[src]

pub fn init_from_axis_angle_degree(axis_angle: (Mat3x1<f64>, f64)) -> Quat<f64>[src]

pub fn init_from_axis_angle_radian(axis_angle: (Mat3x1<f64>, f64)) -> Quat<f64>[src]

pub fn rotate_vector(&self, p: Mat3x1<f64>) -> Mat3x1<f64>[src]

pub fn reflection_in_plane(&self, p: Mat3x1<f64>) -> Mat3x1<f64>[src]

pub fn parallel_component_of_plane(&self, p: Mat3x1<f64>) -> Mat3x1<f64>[src]

pub fn orthogonal_component_of_plane(&self, p: Mat3x1<f64>) -> Mat3x1<f64>[src]

pub fn add(&self, other: Self) -> Quat<f64>[src]

pub fn minus(&self, other: Self) -> Quat<f64>[src]

pub fn mul(&self, other: Self) -> Quat<f64>[src]

pub fn length_squared(&self) -> f64[src]

pub fn length(&self) -> f64[src]

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

pub fn ln(&self) -> Quat<f64>[src]

pub fn pow(&self, t: f64) -> Quat<f64>[src]

pub fn negate(&self) -> Quat<f64>[src]

pub fn conjugate(&self) -> Quat<f64>[src]

pub fn scale(&self, s: f64) -> Quat<f64>[src]

pub fn inverse(&self) -> Quat<f64>[src]

pub fn interpolate_linear(start: Quat<f64>, end: Quat<f64>, t: f64) -> Quat<f64>[src]

pub fn interpolate_slerp(start: Quat<f64>, end: Quat<f64>, t: f64) -> Quat<f64>[src]

Trait Implementations

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

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

impl Default for Quat<f32>[src]

impl Default for Quat<f64>[src]

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

Auto Trait Implementations

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

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

Blanket Implementations

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

impl<T> From<T> for 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<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]