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

Method getSimplex

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

Return the points of the simplex

Source from the content-addressed store, hash-verified

108
109// Return the points of the simplex
110int VoronoiSimplex::getSimplex(Vector3* suppPointsA, Vector3* suppPointsB,
111 Vector3* points) const {
112
113 for (int i=0; i<mNbPoints; i++) {
114 points[i] = mPoints[i];
115 suppPointsA[i] = mSuppPointsA[i];
116 suppPointsB[i] = mSuppPointsB[i];
117 }
118
119 // Return the number of points in the simplex
120 return mNbPoints;
121}
122
123// Return true if the set is affinely dependent.
124/// A set if affinely dependent if a point of the set

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected