Class DistanceOutput

java.lang.Object
org.jbox2d.collision.DistanceOutput

public class DistanceOutput extends java.lang.Object
Output for Distance.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float
     
    int
    number of gjk iterations used
    final Vec2
    Closest point on shapeA
    final Vec2
    Closest point on shapeB
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, 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()