A class expressing a nonuniform scaling transformation. More...
#include <PxMeshScale.h>
Public Member Functions | |
PX_CUDA_CALLABLE PX_FORCE_INLINE | PxMeshScale () |
Constructor initializes to identity scale. More... | |
PX_CUDA_CALLABLE PX_FORCE_INLINE | PxMeshScale (PxReal r) |
Constructor from scalar. More... | |
PX_CUDA_CALLABLE PX_FORCE_INLINE | PxMeshScale (const PxVec3 &s, const PxQuat &r) |
Constructor to initialize to arbitrary scaling. More... | |
PX_CUDA_CALLABLE PX_FORCE_INLINE bool | isIdentity () const |
Returns true if the scaling is an identity transformation. More... | |
PX_CUDA_CALLABLE PX_FORCE_INLINE PxMeshScale | getInverse () const |
Returns the inverse of this scaling transformation. More... | |
PX_CUDA_CALLABLE PX_FORCE_INLINE PxMat33 | toMat33 () const |
Converts this transformation to a 3x3 matrix representation. More... | |
PxVec3 | transform (const PxVec3 &v) const |
Static Public Member Functions | |
static PX_DEPRECATED PX_CUDA_CALLABLE PX_FORCE_INLINE PxMeshScale | createIdentity () |
Returns the identity scaling transformation. More... | |
Public Attributes | |
PxVec3 | scale |
A nonuniform scaling. More... | |
PxQuat | rotation |
The orientation of the scaling axes. More... | |
A class expressing a nonuniform scaling transformation.
The scaling is along arbitrary axes that are specified by PxMeshScale::rotation.
|
inline |
Constructor initializes to identity scale.
|
inlineexplicit |
Constructor from scalar.
|
inline |
Constructor to initialize to arbitrary scaling.
References PxQuat::isUnit(), and PX_ASSERT.
|
inlinestatic |
Returns the identity scaling transformation.
|
inline |
Returns the inverse of this scaling transformation.
|
inline |
Returns true if the scaling is an identity transformation.
|
inline |
Converts this transformation to a 3x3 matrix representation.
References PxMat33::column0, PxMat33::column1, PxMat33::column2, and PxMat33::getTranspose().
PxQuat PxMeshScale::rotation |
The orientation of the scaling axes.
PxVec3 PxMeshScale::scale |
A nonuniform scaling.