#[repr(transparent)]pub struct PxVec3 { /* private fields */ }
Implementations
sourceimpl PxVec3
impl PxVec3
pub fn x(&self) -> f32
pub fn y(&self) -> f32
pub fn z(&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 new(x: f32, y: f32, z: f32) -> PxVec3
pub fn abs(&self) -> PxVec3
pub fn cross(&self, other: &PxVec3) -> PxVec3
pub fn dot(&self, other: &PxVec3) -> f32
pub fn get_normalized(&self) -> PxVec3
pub fn is_finite(&self) -> bool
pub fn is_normalized(&self) -> bool
pub fn is_zero(&self) -> bool
pub fn magnitude(&self) -> f32
pub fn magnitude_squared(&self) -> f32
pub fn max_element(&self) -> f32
pub fn maximum(&self, other: &PxVec3) -> PxVec3
pub fn min_element(&self) -> f32
pub fn minimum(&self, other: &PxVec3) -> PxVec3
pub fn multiply(&self, other: &PxVec3) -> PxVec3
Trait Implementations
sourceimpl Class<PxVec3> for PxVec3
impl Class<PxVec3> for PxVec3
sourcefn as_ptr(&self) -> *const PxVec3
fn as_ptr(&self) -> *const PxVec3
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 PxVec3
fn as_mut_ptr(&mut self) -> *mut PxVec3
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
sourceimpl From<PxExtendedVec3> for PxVec3
impl From<PxExtendedVec3> for PxVec3
sourcefn from(vec3: PxExtendedVec3) -> Self
fn from(vec3: PxExtendedVec3) -> Self
Converts to this type from the input type.
sourceimpl From<PxVec3> for PxExtendedVec3
impl From<PxVec3> for PxExtendedVec3
impl Copy for PxVec3
impl Send for PxVec3
impl Sync for PxVec3
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