public static class Distance.DistanceProxy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Vec2[] |
m_buffer |
int |
m_count |
float |
m_radius |
Vec2[] |
m_vertices |
Constructor and Description |
---|
DistanceProxy() |
Modifier and Type | Method and Description |
---|---|
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.
|
public final Vec2[] m_vertices
public int m_count
public float m_radius
public final Vec2[] m_buffer
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
- Copyright © 2017. All Rights Reserved.