|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbox2d.collision.Distance.DistanceProxy
public static class Distance.DistanceProxy
A distance proxy is used by the GJK algorithm. It encapsulates any shape. TODO: see if we can just do assignments with m_vertices, instead of copying stuff over
| Field Summary | |
|---|---|
Vec2[] |
m_buffer
|
int |
m_count
|
float |
m_radius
|
Vec2[] |
m_vertices
|
| Constructor Summary | |
|---|---|
Distance.DistanceProxy()
|
|
| Method Summary | |
|---|---|
int |
getSupport(Vec2 d)
Get the supporting vertex index in the given direction. |
Vec2 |
getSupportVertex(Vec2 d)
Get the supporting vertex in the given direction. |
Vec2 |
getVertex(int index)
Get a vertex by index. |
int |
getVertexCount()
Get the vertex count. |
void |
set(Shape shape,
int index)
Initialize the proxy using the given shape. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Vec2[] m_vertices
public int m_count
public float m_radius
public final Vec2[] m_buffer
| Constructor Detail |
|---|
public Distance.DistanceProxy()
| Method Detail |
|---|
public final void set(Shape shape,
int index)
public final int getSupport(Vec2 d)
d -
public final Vec2 getSupportVertex(Vec2 d)
d -
public final int getVertexCount()
public final Vec2 getVertex(int index)
index -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||