35#include "common/PxPhysXCommonConfig.h"
36#include "foundation/PxVec3.h"
126 return ((p0 - p1).cross(p0 - p2)).
magnitude() * 0.5f;
A padded version of PxTriangle, to safely load its data using SIMD.
Definition PxTriangle.h:145
Triangle class.
Definition PxTriangle.h:47
PX_FORCE_INLINE PxReal area() const
Compute the area of the triangle.
Definition PxTriangle.h:121
PX_FORCE_INLINE PxTriangle(const PxTriangle &triangle)
Copy constructor.
Definition PxTriangle.h:73
PX_FORCE_INLINE PxTriangle(const PxVec3 &p0, const PxVec3 &p1, const PxVec3 &p2)
Constructor.
Definition PxTriangle.h:61
PX_FORCE_INLINE PxVec3 pointFromUV(PxReal u, PxReal v) const
Definition PxTriangle.h:132
PX_FORCE_INLINE ~PxTriangle()
Destructor.
Definition PxTriangle.h:83
PX_FORCE_INLINE void operator=(const PxTriangle &triangle)
Assignment operator.
Definition PxTriangle.h:88
PxVec3 verts[3]
Array of Vertices.
Definition PxTriangle.h:140
PX_FORCE_INLINE PxTriangle()
Constructor.
Definition PxTriangle.h:52
PX_FORCE_INLINE void denormalizedNormal(PxVec3 &_normal) const
Compute the unnormalized normal of the triangle.
Definition PxTriangle.h:111
PX_FORCE_INLINE void normal(PxVec3 &_normal) const
Compute the normal of the Triangle.
Definition PxTriangle.h:100
3 Element vector class.
Definition PxVec3.h:50
PX_CUDA_CALLABLE PX_FORCE_INLINE float normalize()
normalizes the vector in place
Definition PxVec3.h:300
PX_CUDA_CALLABLE PX_FORCE_INLINE float magnitude() const
returns the magnitude
Definition PxVec3.h:183
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39