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

A class that holds the results of the EPA algorithm. More...

#include <omPhysicsCollisionEPAResult.h>

Public Member Functions

 EPAResult (const MinkowskiVertex &newV1, const MinkowskiVertex &newV2, const MinkowskiVertex &newV3, const SIMDFloat4 &newNormal, Float newDistance)
 Create a new EPA result object with the specified triangle vertices and distance. More...
 
const SIMDFloat4 & getNormal () const
 Return the contact normal of this EPA result. More...
 
Float getDistance () const
 Return the penetration distance of this EPA result. More...
 
void getPoints (SIMDFloat4 &point1, SIMDFloat4 &point2)
 Compute the collision points on each colliding shape. More...
 

Detailed Description

A class that holds the results of the EPA algorithm.

The EPA algorithm returns the triangle that is closest to the surface of the minkowski difference between the two convex shapes being tested.

Constructor & Destructor Documentation

om::physics::collision::EPAResult::EPAResult ( const MinkowskiVertex newV1,
const MinkowskiVertex newV2,
const MinkowskiVertex newV3,
const SIMDFloat4 &  newNormal,
Float  newDistance 
)
inline

Create a new EPA result object with the specified triangle vertices and distance.

Member Function Documentation

const SIMDFloat4& om::physics::collision::EPAResult::getNormal ( ) const
inline

Return the contact normal of this EPA result.

Float om::physics::collision::EPAResult::getDistance ( ) const
inline

Return the penetration distance of this EPA result.

void om::physics::collision::EPAResult::getPoints ( SIMDFloat4 &  point1,
SIMDFloat4 &  point2 
)
inline

Compute the collision points on each colliding shape.


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