![]() |
Jolt Physics
A multi core friendly Game Physics Engine
|
Triangle with 32-bit indices and material index. More...
#include <IndexedTriangle.h>
Public Member Functions | |
| constexpr | IndexedTriangle (uint32 inI1, uint32 inI2, uint32 inI3, uint32 inMaterialIndex) |
| Constructor. More... | |
| bool | operator== (const IndexedTriangle &inRHS) const |
| Check if two triangles are identical. More... | |
| IndexedTriangle | GetLowestIndexFirst () const |
| Rotate the vertices so that the lowest vertex becomes the first. This does not change the represented triangle. More... | |
| JPH_OVERRIDE_NEW_DELETE | IndexedTriangleNoMaterial ()=default |
| Constructor. More... | |
| constexpr | IndexedTriangleNoMaterial (uint32 inI1, uint32 inI2, uint32 inI3) |
Public Member Functions inherited from IndexedTriangleNoMaterial | |
| JPH_OVERRIDE_NEW_DELETE | IndexedTriangleNoMaterial ()=default |
| Constructor. More... | |
| constexpr | IndexedTriangleNoMaterial (uint32 inI1, uint32 inI2, uint32 inI3) |
| bool | operator== (const IndexedTriangleNoMaterial &inRHS) const |
| Check if two triangles are identical. More... | |
| bool | IsEquivalent (const IndexedTriangleNoMaterial &inRHS) const |
| Check if two triangles are equivalent (using the same vertices) More... | |
| bool | IsOpposite (const IndexedTriangleNoMaterial &inRHS) const |
| Check if two triangles are opposite (using the same vertices but in opposing order) More... | |
| bool | IsDegenerate (const VertexList &inVertices) const |
| Check if triangle is degenerate. More... | |
| void | Rotate () |
| Rotate the vertices so that the second vertex becomes first etc. This does not change the represented triangle. More... | |
| Vec3 | GetCentroid (const VertexList &inVertices) const |
| Get center of triangle. More... | |
Public Attributes | |
| uint32 | mMaterialIndex = 0 |
Public Attributes inherited from IndexedTriangleNoMaterial | |
| uint32 | mIdx [3] |
Triangle with 32-bit indices and material index.
|
inlineconstexpr |
Constructor.
|
inline |
Rotate the vertices so that the lowest vertex becomes the first. This does not change the represented triangle.
|
default |
Constructor.
|
inlineconstexpr |
|
inline |
Check if two triangles are identical.
| uint32 IndexedTriangle::mMaterialIndex = 0 |