Struct CollisionPair

Inheritance Relationships

Base Type

  • public std::pair< GeomIndex, GeomIndex >

Struct Documentation

struct CollisionPair : public std::pair<GeomIndex, GeomIndex>

Public Types

typedef std::pair<GeomIndex, GeomIndex> Base

Public Functions

inline CollisionPair()

Empty constructor

inline CollisionPair(const GeomIndex co1, const GeomIndex co2)

Default constructor of a collision pair from two collision object indexes.

Remark

The two indexes must be different, otherwise the constructor throws.

Parameters:
  • co1[in] Index of the first collision object.

  • co2[in] Index of the second collision object.

inline bool operator==(const CollisionPair &rhs) const
inline bool operator!=(const CollisionPair &rhs) const
inline void disp(std::ostream &os) const

Friends

friend std::ostream &operator<<(std::ostream &os, const CollisionPair &X)