Struct gamemath::quat::Quat [−][src]
Fields
x: f32
y: f32
z: f32
w: f32
Methods
impl Quat
[src]
impl Quat
pub fn identity() -> Quat
[src]
pub fn identity() -> Quat
pub fn rotation(axis: Vec3, angle: f32) -> Quat
[src]
pub fn rotation(axis: Vec3, angle: f32) -> Quat
pub fn rotate(&mut self, axis: Vec3, angle: f32)
[src]
pub fn rotate(&mut self, axis: Vec3, angle: f32)
pub fn rotated(&mut self, axis: Vec3, angle: f32) -> Quat
[src]
pub fn rotated(&mut self, axis: Vec3, angle: f32) -> Quat
pub fn length_squared(&self) -> f32
[src]
pub fn length_squared(&self) -> f32
pub fn length(&self) -> f32
[src]
pub fn length(&self) -> f32
pub fn normalized(&self) -> Quat
[src]
pub fn normalized(&self) -> Quat
pub fn normalize(&mut self)
[src]
pub fn normalize(&mut self)
pub fn extract_matrix(&self) -> Mat4
[src]
pub fn extract_matrix(&self) -> Mat4
Trait Implementations
impl From<Quat> for Vec4
[src]
impl From<Quat> for Vec4
impl From<Quat> for Mat4
[src]
impl From<Quat> for Mat4
impl Copy for Quat
[src]
impl Copy for Quat
impl Clone for Quat
[src]
impl Clone for Quat
fn clone(&self) -> Quat
[src]
fn clone(&self) -> Quat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Quat
[src]
impl Debug for Quat
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Quat
[src]
impl Default for Quat
impl From<f32> for Quat
[src]
impl From<f32> for Quat
impl From<Vec4> for Quat
[src]
impl From<Vec4> for Quat
impl From<(f32, f32, f32, f32)> for Quat
[src]
impl From<(f32, f32, f32, f32)> for Quat
impl From<[f32; 4]> for Quat
[src]
impl From<[f32; 4]> for Quat
impl Mul<Quat> for Quat
[src]
impl Mul<Quat> for Quat
type Output = Quat
The resulting type after applying the *
operator.
fn mul(self, right: Quat) -> Quat
[src]
fn mul(self, right: Quat) -> Quat
Performs the *
operation.
impl MulAssign<Quat> for Quat
[src]
impl MulAssign<Quat> for Quat
fn mul_assign(&mut self, right: Quat)
[src]
fn mul_assign(&mut self, right: Quat)
Performs the *=
operation.
impl Add<Quat> for Quat
[src]
impl Add<Quat> for Quat
type Output = Quat
The resulting type after applying the +
operator.
fn add(self, right: Quat) -> Quat
[src]
fn add(self, right: Quat) -> Quat
Performs the +
operation.
impl AddAssign<Quat> for Quat
[src]
impl AddAssign<Quat> for Quat
fn add_assign(&mut self, right: Quat)
[src]
fn add_assign(&mut self, right: Quat)
Performs the +=
operation.