A distance proxy is used by the GJK algorithm. It encapsulates any shape.
Count
Radius
Verticies
Get the supporting vertex index in the given direction.
Direction to look for the supporting vertex.
number
Supporting vertex index.
Get the supporting vertex in the given direction.
Direction to look for the supporting vertex.
Supporting vertex.
Get a vertex by index. Used by b2Distance.
Vetex's index.
Vertex at the given index.
Get the vertex count.
number
The number of vertices. (m_vertices.length)
Initialize the proxy using the given shape. The shape must remain in scope while the proxy is in use.
Shape to initialize the distance proxy.