Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
IndexedTriangleNoMaterial Class Reference

Triangle with 32-bit indices. More...

#include <IndexedTriangle.h>

Inheritance diagram for IndexedTriangleNoMaterial:
IndexedTriangle

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.
 
uint64 GetHash () const
 Get the hash value of this structure.
 

Public Attributes

uint32 mIdx [3]
 

Detailed Description

Triangle with 32-bit indices.

Constructor & Destructor Documentation

◆ IndexedTriangleNoMaterial() [1/2]

JPH_OVERRIDE_NEW_DELETE IndexedTriangleNoMaterial::IndexedTriangleNoMaterial ( )
default

Constructor.

◆ IndexedTriangleNoMaterial() [2/2]

constexpr IndexedTriangleNoMaterial::IndexedTriangleNoMaterial ( uint32  inI1,
uint32  inI2,
uint32  inI3 
)
inlineconstexpr

Member Function Documentation

◆ GetCentroid()

Vec3 IndexedTriangleNoMaterial::GetCentroid ( const VertexList inVertices) const
inline

Get center of triangle.

◆ GetHash()

uint64 IndexedTriangleNoMaterial::GetHash ( ) const
inline

Get the hash value of this structure.

◆ IsDegenerate()

bool IndexedTriangleNoMaterial::IsDegenerate ( const VertexList inVertices) const
inline

Check if triangle is degenerate.

◆ IsEquivalent()

bool IndexedTriangleNoMaterial::IsEquivalent ( const IndexedTriangleNoMaterial inRHS) const
inline

Check if two triangles are equivalent (using the same vertices)

◆ IsOpposite()

bool IndexedTriangleNoMaterial::IsOpposite ( const IndexedTriangleNoMaterial inRHS) const
inline

Check if two triangles are opposite (using the same vertices but in opposing order)

◆ operator==()

bool IndexedTriangleNoMaterial::operator== ( const IndexedTriangleNoMaterial inRHS) const
inline

Check if two triangles are identical.

◆ Rotate()

void IndexedTriangleNoMaterial::Rotate ( )
inline

Rotate the vertices so that the second vertex becomes first etc. This does not change the represented triangle.

Member Data Documentation

◆ mIdx

uint32 IndexedTriangleNoMaterial::mIdx[3]

The documentation for this class was generated from the following file: