Struct physx::math::PxTransform
source · [−]#[repr(transparent)]pub struct PxTransform { /* private fields */ }
Implementations
sourceimpl PxTransform
impl PxTransform
pub fn translation(&self) -> PxVec3
pub fn rotation(&self) -> PxQuat
pub fn translation_mut(&mut self) -> &mut PxVec3
pub fn rotation_mut(&mut self) -> &mut PxQuat
pub fn from_translation(translation: &PxVec3) -> PxTransform
pub fn from_rotation(rotation: &PxQuat) -> PxTransform
pub fn from_translation_rotation(
translation: &PxVec3,
rotation: &PxQuat
) -> PxTransform
pub fn get_inverse(&self) -> PxTransform
pub fn get_normalized(&self) -> PxTransform
pub fn is_finite(&self) -> bool
pub fn is_sane(&self) -> bool
pub fn is_valid(&self) -> bool
pub fn rotate(&self, vector: &PxVec3) -> PxVec3
pub fn rotate_inv(&self, vector: &PxVec3) -> PxVec3
pub fn transform(&self, other: &PxTransform) -> PxTransform
pub fn transform_inv(&self, other: &PxTransform) -> PxTransform
pub fn transform_vector(&self, vector: &PxVec3) -> PxVec3
pub fn transform_vector_inv(&self, vector: &PxVec3) -> PxVec3
pub fn transform_plane(&self, plane: &PxPlane) -> PxPlane
pub fn transform_plane_inv(&self, plane: &PxPlane) -> PxPlane
Trait Implementations
sourceimpl Class<PxTransform> for PxTransform
impl Class<PxTransform> for PxTransform
sourcefn as_ptr(&self) -> *const PxTransform
fn as_ptr(&self) -> *const PxTransform
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 PxTransform
fn as_mut_ptr(&mut self) -> *mut PxTransform
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 Clone for PxTransform
impl Clone for PxTransform
sourcefn clone(&self) -> PxTransform
fn clone(&self) -> PxTransform
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for PxTransform
impl Default for PxTransform
sourceimpl From<PxTransform> for PxTransform
impl From<PxTransform> for PxTransform
sourcefn from(transform: PxTransform) -> Self
fn from(transform: PxTransform) -> Self
Converts to this type from the input type.
sourceimpl From<PxTransform> for PxTransform
impl From<PxTransform> for PxTransform
sourcefn from(value: PxTransform) -> Self
fn from(value: PxTransform) -> Self
Converts to this type from the input type.
impl Copy for PxTransform
impl Send for PxTransform
impl Sync for PxTransform
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