#include <b2Distance.h>
Public Member Functions | |
b2DistanceProxy () | |
int32 | GetSupport (const b2Vec2 &d) const |
Get the supporting vertex index in the given direction. | |
const b2Vec2 & | GetSupportVertex (const b2Vec2 &d) const |
Get the supporting vertex in the given direction. | |
const b2Vec2 & | GetVertex (int32 index) const |
Get a vertex by index. Used by b2Distance. | |
int32 | GetVertexCount () const |
Get the vertex count. | |
void | Set (const b2Shape *shape, int32 index) |
Public Attributes | |
b2Vec2 | m_buffer [2] |
int32 | m_count |
float32 | m_radius |
const b2Vec2 * | m_vertices |
A distance proxy is used by the GJK algorithm. It encapsulates any shape.
Definition at line 29 of file b2Distance.h.
b2DistanceProxy::b2DistanceProxy | ( | ) | [inline] |
Definition at line 31 of file b2Distance.h.
int32 b2DistanceProxy::GetSupport | ( | const b2Vec2 & | d | ) | const [inline] |
Get the supporting vertex index in the given direction.
Definition at line 107 of file b2Distance.h.
const b2Vec2 & b2DistanceProxy::GetSupportVertex | ( | const b2Vec2 & | d | ) | const [inline] |
Get the supporting vertex in the given direction.
Definition at line 124 of file b2Distance.h.
const b2Vec2 & b2DistanceProxy::GetVertex | ( | int32 | index | ) | const [inline] |
Get a vertex by index. Used by b2Distance.
Definition at line 101 of file b2Distance.h.
int32 b2DistanceProxy::GetVertexCount | ( | ) | const [inline] |
Get the vertex count.
Definition at line 96 of file b2Distance.h.
void b2DistanceProxy::Set | ( | const b2Shape * | shape, |
int32 | index | ||
) |
Initialize the proxy using the given shape. The shape must remain in scope while the proxy is in use.
Definition at line 28 of file b2Distance.cpp.
Definition at line 49 of file b2Distance.h.
Definition at line 51 of file b2Distance.h.
Definition at line 52 of file b2Distance.h.
Definition at line 50 of file b2Distance.h.