Home | History | Annotate | Download | only in collision

Lines Matching refs:simplex

105   private class Simplex {
131 // Compute the new simplex metric, if it is substantially different than
132 // old metric then flush the simplex.
137 // Reset the simplex.
602 private Simplex simplex = new Simplex();
612 * PolygonShape. The simplex cache is input/output. On the first call set SimplexCache.count to
629 // Initialize the simplex.
630 simplex.readCache(cache, proxyA, transformA, proxyB, transformB);
632 // Get simplex vertices as an array.
633 SimplexVertex[] vertices = simplex.vertices;
635 // These store the vertices of the last simplex so that we
640 simplex.getClosestPoint(closestPoint);
648 // Copy simplex so we can identify duplicates.
649 saveCount = simplex.m_count;
655 switch (simplex.m_count) {
659 simplex.solve2();
662 simplex.solve3();
669 if (simplex.m_count == 3) {
674 simplex.getClosestPoint(closestPoint);
684 simplex.getSearchDirection(d);
692 // In case the simplex is a point, segment, or triangle it is difficult
697 * SimplexVertex* vertex = vertices + simplex.m_count; vertex.indexA =
704 // Compute a tentative new simplex vertex using support points.
705 SimplexVertex vertex = vertices[simplex.m_count];
735 ++simplex.m_count;
741 simplex.getWitnessPoints(output.pointA, output.pointB);
745 // Cache the simplex.
746 simplex.writeCache(cache);