[−][src]Struct mazth::quat::Quat
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,
T: Send,
impl<T> Sync for Quat<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Quat<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Quat<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Quat<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,