#[repr(transparent)]pub struct PxQuat { /* private fields */ }
Implementations
sourceimpl PxQuat
impl PxQuat
pub fn new(x: f32, y: f32, z: f32, w: f32) -> PxQuat
pub fn x(&self) -> f32
pub fn y(&self) -> f32
pub fn z(&self) -> f32
pub fn w(&self) -> f32
pub fn x_mut(&mut self) -> &mut f32
pub fn y_mut(&mut self) -> &mut f32
pub fn z_mut(&mut self) -> &mut f32
pub fn w_mut(&mut self) -> &mut f32
pub fn dot(&self, other: &PxQuat) -> f32
pub fn get_identity_angle(&self) -> f32
pub fn get_angle(&self, other: &PxQuat) -> f32
pub fn get_basis_vector_x(&self) -> PxVec3
pub fn get_basis_vector_y(&self) -> PxVec3
pub fn get_basis_vector_z(&self) -> PxVec3
pub fn get_conjugate(&self) -> PxQuat
pub fn get_imaginary_part(&self) -> PxVec3
pub fn get_normalized(&self) -> PxQuat
pub fn is_finite(&self) -> bool
pub fn is_identity(&self) -> bool
pub fn is_sane(&self) -> bool
pub fn is_unit(&self) -> bool
pub fn magnitude(&self) -> f32
pub fn magnitude_squared(&self) -> f32
sourcepub fn normalize(&mut self) -> f32
pub fn normalize(&mut self) -> f32
Returns the magnitude of the quaternion before normalization.
pub fn rotate_inverse(&self, vector: &PxVec3) -> PxVec3
sourcepub fn to_angle_axis(&self) -> (f32, PxVec3)
pub fn to_angle_axis(&self) -> (f32, PxVec3)
returns the angle in radians and a normalized axis vector
pub fn from_angle_axis(angle: f32, axis: PxVec3) -> PxQuat
Trait Implementations
sourceimpl Class<PxQuat> for PxQuat
impl Class<PxQuat> for PxQuat
sourcefn as_ptr(&self) -> *const PxQuat
fn as_ptr(&self) -> *const PxQuat
Returns a raw const pointer to the wrapped type.
Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe.
In particular: this pointer should not be used to construct a second owning wrapper around the pointer. Read more
sourcefn as_mut_ptr(&mut self) -> *mut PxQuat
fn as_mut_ptr(&mut self) -> *mut PxQuat
Returns a raw mut pointer to the wrapped type.
Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe.
In particular: this pointer should not be used to construct a second owning wrapper around the pointer. Read more
impl Copy for PxQuat
impl Send for PxQuat
impl Sync for PxQuat
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more