org.jbox2d.collision
Class Distance.SimplexCache

java.lang.Object
  extended by 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
 
Constructor Summary
Distance.SimplexCache()
           
 
Method Summary
 void set(Distance.SimplexCache sc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

Distance.SimplexCache

public Distance.SimplexCache()
Method Detail

set

public void set(Distance.SimplexCache sc)


Copyright © 2013. All Rights Reserved.