32#include "foundation/PxVec3.h"
33#include "foundation/PxAssert.h"
34#include "foundation/PxIntrinsics.h"
35#include "foundation/PxBasicTemplates.h"
44 return *(
reinterpret_cast<char*
>(&i));
50 PX_ASSERT(value <= 0xffffffff);
55 PX_ASSERT(value <= 0xffff);
60 PX_ASSERT(value <= 0xff);
65 PX_ASSERT(value <= 0xff);
70 PX_ASSERT(value <= 0xff);
71 PX_ASSERT(value >= 0);
76 PX_ASSERT(value <= 0x7f);
84template <
typename T,
size_t N>
85char (&PxArraySizeHelper(T (&array)[N]))[N];
86#define PX_ARRAY_SIZE(_array) (sizeof(physx::PxArraySizeHelper(_array)))
105 PxReal newX =
PxMin(x, y);
106 PxReal newY =
PxMax(x, y);
115template <
class T,
class E1>
125#if PX_GCC_FAMILY && !PX_EMSCRIPTEN
126__attribute__((noreturn))
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
#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
PX_CUDA_CALLABLE PX_FORCE_INLINE void PxOrder(T &x, T &y)
Definition PxUtilities.h:95
PX_CUDA_CALLABLE PX_FORCE_INLINE T PxMax(T a, T b)
The return value is the greater of the two specified values.
Definition PxMath.h:72
PX_CUDA_CALLABLE PX_FORCE_INLINE T PxMin(T a, T b)
The return value is the lesser of the two specified values.
Definition PxMath.h:88