Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Public Attributes | List of all members
om::physics::constraints::ContactConstraint::ObjectPair Class Reference

A class that stores the IDs for a pair of simulated objects. More...

#include <omPhysicsContactConstraint.h>

Public Member Functions

 ObjectPair (PhysicsObjectID newObject1, PhysicsObjectID newObject2)
 Create a new object pair for the specified object IDs. More...
 
Bool operator== (const ObjectPair &other) const
 Return whether or not this object pair is equal to another. More...
 
Hash getHashCode () const
 Return a hash code for this object pair. More...
 

Public Attributes

PhysicsObjectID object1
 
PhysicsObjectID object2
 

Detailed Description

A class that stores the IDs for a pair of simulated objects.

Constructor & Destructor Documentation

om::physics::constraints::ContactConstraint::ObjectPair::ObjectPair ( PhysicsObjectID  newObject1,
PhysicsObjectID  newObject2 
)
inline

Create a new object pair for the specified object IDs.

Member Function Documentation

Bool om::physics::constraints::ContactConstraint::ObjectPair::operator== ( const ObjectPair other) const
inline

Return whether or not this object pair is equal to another.

Hash om::physics::constraints::ContactConstraint::ObjectPair::getHashCode ( ) const
inline

Return a hash code for this object pair.

Member Data Documentation

PhysicsObjectID om::physics::constraints::ContactConstraint::ObjectPair::object1
PhysicsObjectID om::physics::constraints::ContactConstraint::ObjectPair::object2

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