Struct e2rcore::implement::math::quat::Quat
[−]
[src]
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]
fn init() -> Quat<f32>[src]
fn init_from_vals(x: f32, y: f32, z: f32, w: f32) -> Quat<f32>[src]
fn init_from_vals_auto_w(x: f32, y: f32, z: f32) -> Quat<f32>[src]
fn init_from_translation(trans: Mat3x1<f32>) -> Quat<f32>[src]
fn to_translation_matrix(&self, row_major: bool) -> Mat4<f32>[src]
fn to_rotation_matrix(&self, row_major: bool) -> Mat4<f32>[src]
fn to_axis_angle(&self) -> (Mat3x1<f32>, f32)[src]
fn init_from_axis_angle_degree(axis_angle: (Mat3x1<f32>, f32)) -> Quat<f32>[src]
fn init_from_axis_angle_radian(axis_angle: (Mat3x1<f32>, f32)) -> Quat<f32>[src]
fn rotate_vector(&self, p: Mat3x1<f32>) -> Mat3x1<f32>[src]
fn reflection_in_plane(&self, p: Mat3x1<f32>) -> Mat3x1<f32>[src]
fn parallel_component_of_plane(&self, p: Mat3x1<f32>) -> Mat3x1<f32>[src]
fn orthogonal_component_of_plane(&self, p: Mat3x1<f32>) -> Mat3x1<f32>[src]
fn add(&self, other: Self) -> Quat<f32>[src]
fn minus(&self, other: Self) -> Quat<f32>[src]
fn mul(&self, other: Self) -> Quat<f32>[src]
fn length_squared(&self) -> f32[src]
fn length(&self) -> f32[src]
fn normalize(&self) -> Quat<f32>[src]
fn ln(&self) -> Quat<f32>[src]
fn pow(&self, t: f32) -> Quat<f32>[src]
fn negate(&self) -> Quat<f32>[src]
fn conjugate(&self) -> Quat<f32>[src]
fn scale(&self, s: f32) -> Quat<f32>[src]
fn inverse(&self) -> Quat<f32>[src]
fn interpolate_linear(start: Quat<f32>, end: Quat<f32>, t: f32) -> Quat<f32>[src]
fn interpolate_slerp(start: Quat<f32>, end: Quat<f32>, t: f32) -> Quat<f32>[src]
impl Quat<f64>[src]
fn init() -> Quat<f64>[src]
fn init_from_vals(x: f64, y: f64, z: f64, w: f64) -> Quat<f64>[src]
fn init_from_vals_auto_w(x: f64, y: f64, z: f64) -> Quat<f64>[src]
fn init_from_translation(trans: Mat3x1<f64>) -> Quat<f64>[src]
fn to_translation_matrix(&self, row_major: bool) -> Mat4<f64>[src]
fn to_rotation_matrix(&self, row_major: bool) -> Mat4<f64>[src]
fn to_axis_angle(&self) -> (Mat3x1<f64>, f64)[src]
fn init_from_axis_angle_degree(axis_angle: (Mat3x1<f64>, f64)) -> Quat<f64>[src]
fn init_from_axis_angle_radian(axis_angle: (Mat3x1<f64>, f64)) -> Quat<f64>[src]
fn rotate_vector(&self, p: Mat3x1<f64>) -> Mat3x1<f64>[src]
fn reflection_in_plane(&self, p: Mat3x1<f64>) -> Mat3x1<f64>[src]
fn parallel_component_of_plane(&self, p: Mat3x1<f64>) -> Mat3x1<f64>[src]
fn orthogonal_component_of_plane(&self, p: Mat3x1<f64>) -> Mat3x1<f64>[src]
fn add(&self, other: Self) -> Quat<f64>[src]
fn minus(&self, other: Self) -> Quat<f64>[src]
fn mul(&self, other: Self) -> Quat<f64>[src]
fn length_squared(&self) -> f64[src]
fn length(&self) -> f64[src]
fn normalize(&self) -> Quat<f64>[src]
fn ln(&self) -> Quat<f64>[src]
fn pow(&self, t: f64) -> Quat<f64>[src]
fn negate(&self) -> Quat<f64>[src]
fn conjugate(&self) -> Quat<f64>[src]
fn scale(&self, s: f64) -> Quat<f64>[src]
fn inverse(&self) -> Quat<f64>[src]
fn interpolate_linear(start: Quat<f64>, end: Quat<f64>, t: f64) -> Quat<f64>[src]
fn interpolate_slerp(start: Quat<f64>, end: Quat<f64>, t: f64) -> Quat<f64>[src]
Trait Implementations
impl<T: Debug> Debug for Quat<T>[src]
impl<T: Copy> Copy for Quat<T>[src]
impl<T: Clone> Clone for Quat<T>[src]
fn clone(&self) -> Quat<T>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more