MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / removePoint

Method removePoint

src/collision/narrowphase/GJK/VoronoiSimplex.cpp:61–67  ·  view source on GitHub ↗

Remove a point from the simplex

Source from the content-addressed store, hash-verified

59
60// Remove a point from the simplex
61void VoronoiSimplex::removePoint(int index) {
62 assert(mNbPoints > 0);
63 mNbPoints--;
64 mPoints[index] = mPoints[mNbPoints];
65 mSuppPointsA[index] = mSuppPointsA[mNbPoints];
66 mSuppPointsB[index] = mSuppPointsB[mNbPoints];
67}
68
69// Reduce the simplex (only keep vertices that participate to the point closest to the origin)
70/// bitsUsedPoints is seen as a sequence of bits representing whether the four points of

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected