Class Distance.SimplexCache

java.lang.Object
org.jbox2d.collision.Distance.SimplexCache
Enclosing class:
Distance

public static class Distance.SimplexCache extends java.lang.Object
Used to warm start Distance. Set count to zero on first call.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
     
    final int[]
    vertices on shape A
    final int[]
    vertices on shape B
    float
    length or area
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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 Details

    • SimplexCache

      public SimplexCache()
  • Method Details