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. 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 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.

◆ 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: