![]() |
Jolt Physics
A multi core friendly Game Physics Engine
|
A simple triangle and its material. More...
#include <Triangle.h>
Public Member Functions | |
| JPH_OVERRIDE_NEW_DELETE | Triangle ()=default |
| Constructor. More... | |
| Triangle (const Float3 &inV1, const Float3 &inV2, const Float3 &inV3) | |
| Triangle (const Float3 &inV1, const Float3 &inV2, const Float3 &inV3, uint32 inMaterialIndex) | |
| Triangle (Vec3Arg inV1, Vec3Arg inV2, Vec3Arg inV3) | |
| Vec3 | GetCentroid () const |
| Get center of triangle. More... | |
Public Attributes | |
| Float3 | mV [3] |
| Vertices. More... | |
| uint32 | mMaterialIndex = 0 |
| Follows mV[3] so that we can read mV as 4 vectors. More... | |
A simple triangle and its material.
|
default |
Constructor.
|
inline |
|
inline |
Get center of triangle.
| uint32 Triangle::mMaterialIndex = 0 |
Follows mV[3] so that we can read mV as 4 vectors.
| Float3 Triangle::mV[3] |
Vertices.