18 #ifndef BT_VORONOI_SIMPLEX_SOLVER_H
19 #define BT_VORONOI_SIMPLEX_SOLVER_H
25 #define VORONOI_SIMPLEX_MAX_VERTS 5
28 #define BT_USE_EQUAL_VERTEX_THRESHOLD
29 #define VORONOI_DEFAULT_EQUAL_VERTEX_THRESHOLD 0.0001f
94 #ifdef NO_VIRTUAL_INTERFACE
125 void removeVertex(
int index);
127 bool updateClosestVectorAndPoints();
145 m_equalVertexThreshold = threshold;
150 return m_equalVertexThreshold;
159 return (m_numVertices == 4);
168 bool emptySimplex()
const ;
174 return m_numVertices;
180 #endif //BT_VORONOI_SIMPLEX_SOLVER_H
unsigned short usedVertexA
btVector3 m_closestPointOnSimplex
unsigned short usedVertexD
#define VORONOI_DEFAULT_EQUAL_VERTEX_THRESHOLD
unsigned short usedVertexB
btScalar m_equalVertexThreshold
bool m_cachedValidClosest
#define btSimplexSolverInterface
btVoronoiSimplexSolver is an implementation of the closest point distance algorithm from a 1-4 points...
void setEqualVertexThreshold(btScalar threshold)
void setBarycentricCoordinates(btScalar a=btScalar(0.), btScalar b=btScalar(0.), btScalar c=btScalar(0.), btScalar d=btScalar(0.))
btVector3 can be used to represent 3D points and vectors.
#define ATTRIBUTE_ALIGNED16(a)
btSubSimplexClosestResult m_cachedBC
#define BT_DECLARE_ALIGNED_ALLOCATOR()
btScalar m_barycentricCoords[4]
unsigned short usedVertexC
btUsageBitfield m_usedVertices
btScalar getEqualVertexThreshold() const
#define VORONOI_SIMPLEX_MAX_VERTS
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...