Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | List of all members
om::physics::base::ConvexHull::Triangle Class Reference

#include <omPhysicsConvexHull.h>

Public Member Functions

 Triangle (UInt32 newV1, UInt32 newV2, UInt32 newV3, const Plane3f &newPlane)
 Create a new convex hull triangle with the specified vertex indices and plane. More...
 
UInt32 getVertexIndex (UInt32 index) const
 Return the index of the vertex at the specified index in this triangle. More...
 
const SIMDFloat4 & getNormal () const
 Return a const reference to the normal of this convex hull triangles. More...
 
Float getSignedDistanceTo (const SIMDFloat4 &point) const
 Return the signed distance to a point from the triangle's plane. More...
 

Constructor & Destructor Documentation

om::physics::base::ConvexHull::Triangle::Triangle ( UInt32  newV1,
UInt32  newV2,
UInt32  newV3,
const Plane3f &  newPlane 
)
inline

Create a new convex hull triangle with the specified vertex indices and plane.

Member Function Documentation

UInt32 om::physics::base::ConvexHull::Triangle::getVertexIndex ( UInt32  index) const
inline

Return the index of the vertex at the specified index in this triangle.

Valid vertex indices are 0, 1, or 2.

const SIMDFloat4& om::physics::base::ConvexHull::Triangle::getNormal ( ) const
inline

Return a const reference to the normal of this convex hull triangles.

Float om::physics::base::ConvexHull::Triangle::getSignedDistanceTo ( const SIMDFloat4 &  point) const
inline

Return the signed distance to a point from the triangle's plane.


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