# Class Distance.SimplexCache

java.lang.Object
com.codename1.gaming.physics.box2d.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.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `int`
  `count`
  `final int[]`
  `indexA`
  vertices on shape A
  `final int[]`
  `indexB`
  vertices on shape B
  `float`
  `metric`
  length or area

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SimplexCache()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `set(Distance.SimplexCache sc)`

  ### Methods inherited from class Object

  `clone, equals, 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

  - ### set

    public void set(Distance.SimplexCache sc)