Go to the source code of this file.
Function Documentation
Create a DistanceProxy instance.
A distance proxy is used by the GJK algorithm. It encapsulates any shape
Destroy the DistanceProxy provided as parameter.
- Parameters:
-
proxy | The DistanceProxy to be destroyed |
var b2DistanceProxy_GetSupport |
( |
b2DistanceProxy * |
proxy, |
|
|
const VECTOR * |
d |
|
) |
| |
Get the supporting vertex index in the given direction.
- Parameters:
-
- Returns:
- The supporting vector index
void b2DistanceProxy_GetSupportVertex |
( |
b2DistanceProxy * |
proxy, |
|
|
const VECTOR * |
d, |
|
|
VECTOR * |
outVertex |
|
) |
| |
Get the supporting vertex in the given direction.
- Parameters:
-
proxy | The b2DistanceProxy |
d | The direction vector |
outVertex | The resulting vector |
void b2DistanceProxy_GetVertex |
( |
b2DistanceProxy * |
proxy, |
|
|
var |
index, |
|
|
VECTOR * |
outVertex |
|
) |
| |
Get a vertex by index. Used by b2Distance.
- Parameters:
-
proxy | The b2DistanceProxy |
index | The vertex index |
outVertex | The resulting vectex position |
Get the vertex count.
- Parameters:
-
- Returns:
- The vertex count
Initialize the proxy using the given shape.
The shape must remain in scope while the proxy is in use.
- Parameters:
-