#include <collisionAlgorithms.h>
Public Member Functions | |
DistanceCallback (const CollisionModel *m1, const CollisionModel *m2) | |
virtual bool | distanceTest (double dSq) |
void | getClosestPoints (position &p1, position &p2) const |
double | getMin () const |
virtual void | leafTest (const Leaf *l1, const Leaf *l2) |
void | printStatistics () |
virtual double | quickTest (const Node *n1, const Node *n2) |
virtual void | reset () |
Private Attributes | |
double | mMinDistSq |
position | mP1 |
position | mP2 |
Recursion callback for the distance test.
Definition at line 187 of file collisionAlgorithms.h.
Collision::DistanceCallback::DistanceCallback | ( | const CollisionModel * | m1, | |
const CollisionModel * | m2 | |||
) | [inline] |
Definition at line 193 of file collisionAlgorithms.h.
virtual bool Collision::DistanceCallback::distanceTest | ( | double | dSq | ) | [inline, virtual] |
Implements Collision::RecursionCallback.
Definition at line 202 of file collisionAlgorithms.h.
Definition at line 208 of file collisionAlgorithms.h.
double Collision::DistanceCallback::getMin | ( | ) | const [inline] |
Definition at line 207 of file collisionAlgorithms.h.
Implements Collision::RecursionCallback.
Definition at line 176 of file collisionAlgorithms_inl.h.
void Collision::DistanceCallback::printStatistics | ( | ) | [virtual] |
Reimplemented from Collision::RecursionCallback.
Definition at line 216 of file collisionAlgorithms.cpp.
Implements Collision::RecursionCallback.
Definition at line 168 of file collisionAlgorithms_inl.h.
virtual void Collision::DistanceCallback::reset | ( | ) | [inline, virtual] |
Reimplemented from Collision::RecursionCallback.
Definition at line 195 of file collisionAlgorithms.h.
double Collision::DistanceCallback::mMinDistSq [private] |
Definition at line 190 of file collisionAlgorithms.h.
position Collision::DistanceCallback::mP1 [private] |
Definition at line 191 of file collisionAlgorithms.h.
position Collision::DistanceCallback::mP2 [private] |
Definition at line 191 of file collisionAlgorithms.h.