57 explicit PX_CUDA_CALLABLE
PX_FORCE_INLINE PxNodeIndex(PxU32
id, PxU32 articLinkId) : ind((PxU64(
id) << 32) | (articLinkId << 1) | 1)
65 PX_CUDA_CALLABLE
PX_FORCE_INLINE PxU32 index()
const {
return PxU32(ind >> 32); }
66 PX_CUDA_CALLABLE
PX_FORCE_INLINE PxU32 articulationLinkId()
const {
return PxU32((ind >> 1) & 0x7FFFFFFF); }
67 PX_CUDA_CALLABLE
PX_FORCE_INLINE PxU32 isArticulation()
const {
return PxU32(ind & 1); }
69 PX_CUDA_CALLABLE
PX_FORCE_INLINE bool isStaticBody()
const {
return PxU32(ind >> 32) == PX_INVALID_NODE; }
71 PX_CUDA_CALLABLE
bool isValid()
const {
return PxU32(ind >> 32) != PX_INVALID_NODE; }
73 PX_CUDA_CALLABLE
void setIndices(PxU32 index, PxU32 articLinkId) { ind = ((PxU64(index) << 32) | (articLinkId << 1) | 1); }
75 PX_CUDA_CALLABLE
void setIndices(PxU32 index) { ind = ((PxU64(index) << 32)); }
77 PX_CUDA_CALLABLE
bool operator < (
const PxNodeIndex& other)
const {
return ind < other.ind; }
79 PX_CUDA_CALLABLE
bool operator <= (
const PxNodeIndex& other)
const {
return ind <= other.ind; }
81 PX_CUDA_CALLABLE
bool operator == (
const PxNodeIndex& other)
const {
return ind == other.ind; }
83 PX_CUDA_CALLABLE PxU64 getInd()
const {
return ind; }
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39