com.bulletphysics.collision.narrowphase
Interface SimplexSolverInterface
- All Known Implementing Classes:
- VoronoiSimplexSolver
public interface SimplexSolverInterface
SimplexSolverInterface can incrementally calculate distance between origin and up to 4 vertices
Used by GJK or Linear Casting. Can be implemented by the Johnson-algorithm or alternative approaches based on
voronoi regions or barycentric coordinates.
reset
void reset()
addVertex
void addVertex(javax.vecmath.Vector3f w,
javax.vecmath.Vector3f p,
javax.vecmath.Vector3f q)
closest
boolean closest(javax.vecmath.Vector3f v)
maxVertex
float maxVertex()
fullSimplex
boolean fullSimplex()
getSimplex
int getSimplex(javax.vecmath.Vector3f[] pBuf,
javax.vecmath.Vector3f[] qBuf,
javax.vecmath.Vector3f[] yBuf)
inSimplex
boolean inSimplex(javax.vecmath.Vector3f w)
backup_closest
void backup_closest(javax.vecmath.Vector3f v)
emptySimplex
boolean emptySimplex()
compute_points
void compute_points(javax.vecmath.Vector3f p1,
javax.vecmath.Vector3f p2)
numVertices
int numVertices()