35#include "foundation/PxQuat.h"
67 PX_ASSERT(orientation.isSane());
99 return p == t.p && q == t.q;
104 PX_ASSERT(x.isSane());
111 *
this = *
this * other;
121 PX_CUDA_CALLABLE
PX_FORCE_INLINE PxVec3T<Type> transform(
const PxVec3T<Type>& input)
const
124 return q.
rotate(input) + p;
127 PX_CUDA_CALLABLE
PX_FORCE_INLINE PxVec3T<Type> transformInv(
const PxVec3T<Type>& input)
const
133 PX_CUDA_CALLABLE
PX_FORCE_INLINE PxVec3T<Type> rotate(
const PxVec3T<Type>& input)
const
139 PX_CUDA_CALLABLE
PX_FORCE_INLINE PxVec3T<Type> rotateInv(
const PxVec3T<Type>& input)
const
176 return p.isFinite() && q.
isFinite();
198typedef PxTransformT<float> PxTransform;
208struct PX_ALIGN_PREFIX(16) PxTransformPadded
216typedef PxTransformPadded PxTransform32;
4x4 matrix class
Definition PxMat44.h:55
This is a quaternion class. For more information on quaternion mathematics consult a mathematics sour...
Definition PxQuat.h:49
PX_CUDA_CALLABLE PX_FORCE_INLINE const PxVec3T< Type > rotateInv(const PxVec3T< Type > &v) const
Definition PxQuat.h:301
PX_CUDA_CALLABLE bool isSane() const
returns true if finite and magnitude is reasonably close to unit to allow for some accumulation of er...
Definition PxQuat.h:142
PX_CUDA_CALLABLE bool isUnit() const
returns true if finite and magnitude is close to unit
Definition PxQuat.h:132
PX_CUDA_CALLABLE PX_FORCE_INLINE const PxVec3T< Type > rotate(const PxVec3T< Type > &v) const
Definition PxQuat.h:287
PX_CUDA_CALLABLE bool isFinite() const
returns true if all elements are finite (not NAN or INF, etc.)
Definition PxQuat.h:124
3 Element vector class.
Definition PxVec3.h:50
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
#define PX_COMPILE_TIME_ASSERT(exp)
Definition PxPreprocessor.h:428
#define PX_INLINE
Definition PxPreprocessor.h:320
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PxIDENTITY
Definition Px.h:99