Struct euler::Quat
[−]
[src]
#[repr(C)]pub struct Quat { pub vector: Vec3, pub scalar: f32, }
Quaternion in the order [x, y, z, w]
, where w
is the scalar.
Fields
vector: Vec3
Vector part.
scalar: f32
Scalar part.
Methods
impl Quat
[src]
fn identity() -> Self
[src]
Returns the identity quaternion.
fn rotation_about_axis(axis: Vec3, r: f32) -> Self
[src]
Returns a quaternion representing a rotation by r
radians about axis
.
Trait Implementations
impl Clone for Quat
[src]
fn clone(&self) -> Quat
[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
impl Copy for Quat
[src]
impl Debug for Quat
[src]
impl PartialEq for Quat
[src]
fn eq(&self, __arg_0: &Quat) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Quat) -> bool
[src]
This method tests for !=
.
impl AsRef<[f32; 4]> for Quat
[src]
impl From<[f32; 4]> for Quat
[src]
impl Into<[f32; 4]> for Quat
[src]
impl From<Quaternion<f32>> for Quat
[src]
fn from(q: Quaternion<f32>) -> Self
[src]
Performs the conversion.
impl Into<Quaternion<f32>> for Quat
[src]
fn into(self) -> Quaternion<f32>
[src]
Performs the conversion.