Klamp't  0.8.1
DistanceQuery.h
1 #ifndef GEOMETRY_DISTANCE_QUERY_H
2 #define GEOMETRY_DISTANCE_QUERY_H
3 
4 #include <KrisLibrary/geometry/AnyGeometry.h>
5 using namespace Math3D;
6 using namespace Geometry;
7 
20 {
21  enum Status { Far, Close, Contact, WasFar, WasClose, WasContact, Invalid };
22 
23  DistanceQuery();
24  void NextCycle();
25  Real UpdateQuery();
26  bool ClosestPoints(Vector3& cp1, Vector3& cp2, Vector3& dir);
27 
28  Geometry::AnyCollisionQuery* query;
29  Status s;
30 
31  Real distanceTolerance;
32  Real distanceAbsErr;
33  Real distanceRelErr;
34 };
35 
36 
37 #endif
A method for efficiently caching and updating distance computations using temporal coherence...
Definition: DistanceQuery.h:19