org.jbox2d.collision
Class Distance.SimplexCache
java.lang.Object
org.jbox2d.collision.Distance.SimplexCache
- Enclosing class:
- Distance
public static class Distance.SimplexCache
- extends Object
Used to warm start Distance. Set count to zero on first call.
- Author:
- daniel
Field Summary |
int |
count
|
int[] |
indexA
vertices on shape A |
int[] |
indexB
vertices on shape B |
float |
metric
length or area |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
metric
public float metric
- length or area
count
public int count
indexA
public final int[] indexA
- vertices on shape A
indexB
public final int[] indexB
- vertices on shape B
Distance.SimplexCache
public Distance.SimplexCache()
set
public void set(Distance.SimplexCache sc)
Copyright © 2013. All Rights Reserved.