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