|
RavEngine
|
class representing a rigid euclidean transform as a quaternion and a vector More...
#include <PxTransform.h>
Public Member Functions | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE | PxTransform (const PxVec3 &position) |
| PX_CUDA_CALLABLE PX_FORCE_INLINE | PxTransform (PxIDENTITY r) |
| PX_CUDA_CALLABLE PX_FORCE_INLINE | PxTransform (const PxQuat &orientation) |
| PX_CUDA_CALLABLE PX_FORCE_INLINE | PxTransform (float x, float y, float z, PxQuat aQ=PxQuat(PxIdentity)) |
| PX_CUDA_CALLABLE PX_FORCE_INLINE | PxTransform (const PxVec3 &p0, const PxQuat &q0) |
| PX_CUDA_CALLABLE PX_FORCE_INLINE | PxTransform (const PxMat44 &m) |
| PX_CUDA_CALLABLE PX_INLINE bool | operator== (const PxTransform &t) const |
| returns true if the two transforms are exactly equal | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxTransform | operator* (const PxTransform &x) const |
| PX_CUDA_CALLABLE PX_INLINE PxTransform & | operator*= (PxTransform &other) |
| Equals matrix multiplication. | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxTransform | getInverse () const |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 | transform (const PxVec3 &input) const |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 | transformInv (const PxVec3 &input) const |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 | rotate (const PxVec3 &input) const |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 | rotateInv (const PxVec3 &input) const |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxTransform | transform (const PxTransform &src) const |
| Transform transform to parent (returns compound transform: first src, then *this) | |
| PX_CUDA_CALLABLE bool | isValid () const |
| returns true if finite and q is a unit quaternion | |
| PX_CUDA_CALLABLE bool | isSane () const |
| returns true if finite and quat magnitude is reasonably close to unit to allow for some accumulation of error vs isValid | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE bool | isFinite () const |
| returns true if all elems are finite (not NAN or INF, etc.) | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxTransform | transformInv (const PxTransform &src) const |
| Transform transform from parent (returns compound transform: first src, then this->inverse) | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxPlane | transform (const PxPlane &plane) const |
| transform plane | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxPlane | inverseTransform (const PxPlane &plane) const |
| inverse-transform plane | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxTransform | getNormalized () const |
| return a normalized transform (i.e. one in which the quaternion has unit magnitude) | |
Public Attributes | |
| PxQuat | q |
| PxVec3 | p |
class representing a rigid euclidean transform as a quaternion and a vector