50 return (v1 - v0).Cross(v2 - v0).IsNearZero();
std::uint64_t uint64
Definition Core.h:485
unsigned int uint
Definition Core.h:481
#define JPH_NAMESPACE_END
Definition Core.h:414
std::uint32_t uint32
Definition Core.h:484
#define JPH_NAMESPACE_BEGIN
Definition Core.h:408
#define JPH_MAKE_STD_HASH(type)
Definition HashCombine.h:207
JPH_NAMESPACE_BEGIN uint64 HashBytes(const void *inData, uint inSize, uint64 inSeed=0xcbf29ce484222325UL)
Definition HashCombine.h:15
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition Memory.h:31
Triangle with 32-bit indices and material index.
Definition IndexedTriangle.h:80
uint32 mUserData
User data that can be used for anything by the application, e.g. for tracking the original index of t...
Definition IndexedTriangle.h:120
uint32 mMaterialIndex
Definition IndexedTriangle.h:119
bool operator==(const IndexedTriangle &inRHS) const
Check if two triangles are identical.
Definition IndexedTriangle.h:88
uint64 GetHash() const
Get the hash value of this structure.
Definition IndexedTriangle.h:113
IndexedTriangle GetLowestIndexFirst() const
Rotate the vertices so that the lowest vertex becomes the first. This does not change the represented...
Definition IndexedTriangle.h:94
constexpr IndexedTriangle(uint32 inI1, uint32 inI2, uint32 inI3, uint32 inMaterialIndex, uint inUserData=0)
Constructor.
Definition IndexedTriangle.h:85
Triangle with 32-bit indices.
Definition IndexedTriangle.h:13
JPH_OVERRIDE_NEW_DELETE IndexedTriangleNoMaterial()=default
Constructor.
Vec3 GetCentroid(const VertexList &inVertices) const
Get center of triangle.
Definition IndexedTriangle.h:63
uint32 mIdx[3]
Definition IndexedTriangle.h:75
bool IsDegenerate(const VertexList &inVertices) const
Check if triangle is degenerate.
Definition IndexedTriangle.h:44
void Rotate()
Rotate the vertices so that the second vertex becomes first etc. This does not change the represented...
Definition IndexedTriangle.h:54
uint64 GetHash() const
Get the hash value of this structure.
Definition IndexedTriangle.h:69
constexpr IndexedTriangleNoMaterial(uint32 inI1, uint32 inI2, uint32 inI3)
Definition IndexedTriangle.h:19
bool IsEquivalent(const IndexedTriangleNoMaterial &inRHS) const
Check if two triangles are equivalent (using the same vertices)
Definition IndexedTriangle.h:28
bool IsOpposite(const IndexedTriangleNoMaterial &inRHS) const
Check if two triangles are opposite (using the same vertices but in opposing order)
Definition IndexedTriangle.h:36
bool operator==(const IndexedTriangleNoMaterial &inRHS) const
Check if two triangles are identical.
Definition IndexedTriangle.h:22