Differential D1739 Diff 5899 extern/bullet2/src/BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.cpp
Changeset View
Changeset View
Standalone View
Standalone View
extern/bullet2/src/BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.cpp
| Show First 20 Lines • Show All 288 Lines • ▼ Show 20 Lines | bool btVoronoiSimplexSolver::inSimplex(const btVector3& w) | ||||
| //w is in the current (reduced) simplex | //w is in the current (reduced) simplex | ||||
| for (i=0;i<numverts;i++) | for (i=0;i<numverts;i++) | ||||
| { | { | ||||
| #ifdef BT_USE_EQUAL_VERTEX_THRESHOLD | #ifdef BT_USE_EQUAL_VERTEX_THRESHOLD | ||||
| if ( m_simplexVectorW[i].distance2(w) <= m_equalVertexThreshold) | if ( m_simplexVectorW[i].distance2(w) <= m_equalVertexThreshold) | ||||
| #else | #else | ||||
| if (m_simplexVectorW[i] == w) | if (m_simplexVectorW[i] == w) | ||||
| #endif | #endif | ||||
| { | |||||
| found = true; | found = true; | ||||
| break; | |||||
| } | |||||
| } | } | ||||
| //check in case lastW is already removed | //check in case lastW is already removed | ||||
| if (w == m_lastW) | if (w == m_lastW) | ||||
| return true; | return true; | ||||
| return found; | return found; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 304 Lines • Show Last 20 Lines | |||||