Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Public Attributes | List of all members
om::physics::collision::EPASolver::EPATriangle Class Reference

#include <omPhysicsCollisionEPASolver.h>

Public Member Functions

 EPATriangle (UInt32 newV1, UInt32 newV2, UInt32 newV3, Float newDistance, const SIMDFloat4 &newNormal)
 Create a new EPA triangle from the specified vertex indices and plane. More...
 
Bool operator< (const EPATriangle &triangle) const
 
Float getSignedDistanceTo (const SIMDFloat4 &point) const
 Return the signed distance from the triangle's plane to a point in minkowski difference space. More...
 

Public Attributes

SIMDFloat4 normal
 The plane normal of this EPA triangle in minkowski difference space. More...
 
Float distance
 The distance of this triangle's plane from the origin. More...
 
UInt32 v1
 The index of the first vertex of this EPA triangle. More...
 
UInt32 v2
 The index of the second vertex of this EPA triangle. More...
 
UInt32 v3
 The index of the third vertex of this EPA triangle. More...
 

Constructor & Destructor Documentation

om::physics::collision::EPASolver::EPATriangle::EPATriangle ( UInt32  newV1,
UInt32  newV2,
UInt32  newV3,
Float  newDistance,
const SIMDFloat4 &  newNormal 
)
inline

Create a new EPA triangle from the specified vertex indices and plane.

Member Function Documentation

Bool om::physics::collision::EPASolver::EPATriangle::operator< ( const EPATriangle triangle) const
inline
Float om::physics::collision::EPASolver::EPATriangle::getSignedDistanceTo ( const SIMDFloat4 &  point) const
inline

Return the signed distance from the triangle's plane to a point in minkowski difference space.

Member Data Documentation

SIMDFloat4 om::physics::collision::EPASolver::EPATriangle::normal

The plane normal of this EPA triangle in minkowski difference space.

By convention, the normal points toward the interior of the convex hull.

Float om::physics::collision::EPASolver::EPATriangle::distance

The distance of this triangle's plane from the origin.

UInt32 om::physics::collision::EPASolver::EPATriangle::v1

The index of the first vertex of this EPA triangle.

UInt32 om::physics::collision::EPASolver::EPATriangle::v2

The index of the second vertex of this EPA triangle.

UInt32 om::physics::collision::EPASolver::EPATriangle::v3

The index of the third vertex of this EPA triangle.


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