# Class DistanceOutput

java.lang.Object
com.codename1.gaming.physics.box2d.collision.DistanceOutput

public class DistanceOutput extends Object
Output for Distance.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `float`
  `distance`
  `int`
  `iterations`
  number of gjk iterations used
  `final Vec2`
  `pointA`
  Closest point on shapeA
  `final Vec2`
  `pointB`
  Closest point on shapeB

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DistanceOutput()`

- ## Method Summary

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### pointA

    public final Vec2 pointA
    Closest point on shapeA

  - ### pointB

    public final Vec2 pointB
    Closest point on shapeB

  - ### distance

    public float distance

  - ### iterations

    public int iterations
    number of gjk iterations used

- ## Constructor Details

  - ### DistanceOutput

    public DistanceOutput()