|
Bullet Collision Detection & Physics Library
|
Go to the documentation of this file.
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
30 #ifdef BT_USE_DOUBLE_PRECISION
31 #define VORONOI_DEFAULT_EQUAL_VERTEX_THRESHOLD 1e-12f
33 #define VORONOI_DEFAULT_EQUAL_VERTEX_THRESHOLD 0.0001f
34 #endif//BT_USE_DOUBLE_PRECISION
98 #ifdef NO_VIRTUAL_INTERFACE
129 void removeVertex(
int index);
131 bool updateClosestVectorAndPoints();
149 m_equalVertexThreshold = threshold;
154 return m_equalVertexThreshold;
163 return (m_numVertices == 4);
172 bool emptySimplex()
const ;
178 return m_numVertices;
184 #endif //BT_VORONOI_SIMPLEX_SOLVER_H
btScalar m_barycentricCoords[4]
unsigned short usedVertexA
unsigned short usedVertexB
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
void setBarycentricCoordinates(btScalar a=btScalar(0.), btScalar b=btScalar(0.), btScalar c=btScalar(0.), btScalar d=btScalar(0.))
unsigned short usedVertexD
btScalar m_equalVertexThreshold
#define VORONOI_SIMPLEX_MAX_VERTS
btVoronoiSimplexSolver is an implementation of the closest point distance algorithm from a 1-4 points...
btVector3 m_closestPointOnSimplex
bool m_cachedValidClosest
void setEqualVertexThreshold(btScalar threshold)
btUsageBitfield m_usedVertices
#define BT_DECLARE_ALIGNED_ALLOCATOR()
btVector3 can be used to represent 3D points and vectors.
#define ATTRIBUTE_ALIGNED16(a)
btScalar getEqualVertexThreshold() const
btSubSimplexClosestResult m_cachedBC
#define VORONOI_DEFAULT_EQUAL_VERTEX_THRESHOLD
#define btSimplexSolverInterface
unsigned short usedVertexC