Triangle class. More...
#include <PxTriangle.h>
Public Member Functions | |
PX_FORCE_INLINE | PxTriangle () |
Constructor. More... | |
PX_FORCE_INLINE | PxTriangle (const PxVec3 &p0, const PxVec3 &p1, const PxVec3 &p2) |
Constructor. More... | |
PX_FORCE_INLINE | PxTriangle (const PxTriangle &triangle) |
Copy constructor. More... | |
PX_FORCE_INLINE | ~PxTriangle () |
Destructor. More... | |
PX_FORCE_INLINE void | normal (PxVec3 &_normal) const |
Compute the normal of the Triangle. More... | |
PX_FORCE_INLINE void | denormalizedNormal (PxVec3 &_normal) const |
Compute the unnormalized normal of the triangle. More... | |
PX_FORCE_INLINE PxReal | area () const |
Compute the area of the triangle. More... | |
Public Attributes | |
PxVec3 | verts [3] |
Array of Vertices. More... | |
Triangle class.
|
inline |
Constructor.
|
inline |
Constructor.
[in] | p0 | Point 0 |
[in] | p1 | Point 1 |
[in] | p2 | Point 2 |
|
inline |
|
inline |
Destructor.
|
inline |
|
inline |
Compute the unnormalized normal of the triangle.
[out] | _normal | Triangle normal (not normalized). |
|
inline |
Compute the normal of the Triangle.
[out] | _normal | Triangle normal. |
References PxVec3::normalize().
PxVec3 PxTriangle::verts[3] |
Array of Vertices.
Referenced by PxTriangle().