31 #ifndef PX_PHYSICS_CCT_EXTENDED 32 #define PX_PHYSICS_CCT_EXTENDED 53 #define PX_MAX_EXTENDED PX_MAX_F64 54 #define PxExtendedAbs(x) fabs(x) 63 if(x!=0.0 || y!=0.0 || z!=0.0)
return false;
77 return dx * dx + dy * dy + dz * dz;
82 return x * x + y * y + z * z;
87 return PxSqrt(x * x + y * y + z * z);
110 if (x < v.
x) x = v.
x;
111 if (y < v.
y) y = v.
y;
112 if (z < v.
z) z = v.
z;
118 if (x > v.
x) x = v.
x;
119 if (y > v.
y) y = v.
y;
120 if (z > v.
z) z = v.
z;
242 return reinterpret_cast<PxExtended*
>(
this)[index];
250 return reinterpret_cast<const PxExtended*
>(
this)[index];
258 return PxVec3(
float(v.
x),
float(v.
y),
float(v.
z));
266 #define PX_MAX_EXTENDED PX_MAX_F32 267 #define PxExtendedAbs(x) fabsf(x) Definition: GuContactBuffer.h:37
PX_INLINE void setMinusInfinity()
Definition: PxExtended.h:135
PX_INLINE void cross(const PxExtendedVec3 &left, const PxExtendedVec3 &right)
Definition: PxExtended.h:152
PX_INLINE PxExtended magnitude() const
Definition: PxExtended.h:85
PX_INLINE PxExtended dot(const PxVec3 &v) const
Definition: PxExtended.h:67
PX_INLINE void setPlusInfinity()
Definition: PxExtended.h:130
PX_INLINE bool isFinite() const
Definition: PxExtended.h:103
PX_INLINE PxExtendedVec3 & operator-=(const PxExtendedVec3 &v)
Definition: PxExtended.h:196
PX_INLINE void minimum(const PxExtendedVec3 &v)
Definition: PxExtended.h:116
#define PX_FORCE_INLINE
Definition: PxPreprocessor.h:351
float PxReal
Definition: PxSimpleTypes.h:78
PX_INLINE PxVec3 operator-(const PxExtendedVec3 &v) const
Definition: PxExtended.h:233
PxExtended y
Definition: PxExtended.h:253
PX_INLINE PxExtendedVec3 cross(const PxExtendedVec3 &v) const
Definition: PxExtended.h:164
#define PX_MAX_EXTENDED
Definition: PxExtended.h:53
PX_INLINE PxExtended normalize()
Definition: PxExtended.h:90
PX_INLINE PxExtendedVec3 & operator-=(const PxVec3 &v)
Definition: PxExtended.h:212
PX_INLINE PxExtendedVec3 & operator+=(const PxVec3 &v)
Definition: PxExtended.h:204
PX_CUDA_CALLABLE PX_FORCE_INLINE float PxSqrt(float a)
Square root.
Definition: PxMath.h:144
PX_INLINE PxExtendedVec3(PxExtended _x, PxExtended _y, PxExtended _z)
Definition: PxExtended.h:59
float y
Definition: PxVec3.h:381
PX_INLINE void cross(const PxVec3 &left, const PxExtendedVec3 &right)
Definition: PxExtended.h:171
PxExtended x
Definition: PxExtended.h:253
PX_INLINE PxExtendedVec3 & operator+=(const PxExtendedVec3 &v)
Definition: PxExtended.h:188
PX_INLINE PxExtendedVec3 operator-() const
Definition: PxExtended.h:183
PxExtended z
Definition: PxExtended.h:253
PX_INLINE void cross(const PxExtendedVec3 &left, const PxVec3 &right)
Definition: PxExtended.h:140
PX_INLINE PxExtendedVec3()
Definition: PxExtended.h:58
double PxExtended
Definition: PxExtended.h:52
PX_CUDA_CALLABLE PX_FORCE_INLINE bool PxIsFinite(float f)
returns true if the passed number is a finite floating point number as opposed to INF...
Definition: PxMath.h:292
PX_INLINE PxExtended operator[](int index) const
Definition: PxExtended.h:246
PX_INLINE PxExtendedVec3 & operator*=(const PxReal &s)
Definition: PxExtended.h:220
PX_INLINE PxExtendedVec3 operator+(const PxExtendedVec3 &v) const
Definition: PxExtended.h:228
PX_INLINE PxExtended distanceSquared(const PxExtendedVec3 &v) const
Definition: PxExtended.h:72
PX_INLINE bool isZero() const
Definition: PxExtended.h:61
#define PX_ASSERT(exp)
Definition: PxAssert.h:59
PX_INLINE PxExtended magnitudeSquared() const
Definition: PxExtended.h:80
PX_INLINE void maximum(const PxExtendedVec3 &v)
Definition: PxExtended.h:108
PX_FORCE_INLINE PxVec3 toVec3(const PxExtendedVec3 &v)
Definition: PxExtended.h:256
float z
Definition: PxVec3.h:381
#define PX_INLINE
Definition: PxPreprocessor.h:336
3 Element vector class.
Definition: PxVec3.h:49
PX_INLINE PxExtended & operator[](int index)
Definition: PxExtended.h:238
Definition: PxExtended.h:56
float x
Definition: PxVec3.h:381