Dart Documentationbox2dDistanceOutput

DistanceOutput class

class DistanceOutput {
 /** Closest point on shapeA */
 final Vector2 pointA;

 /** Closest point on shapeB */
 final Vector2 pointB;

 double distance;

 /** number of gjk iterations used */
 int iterations;

 DistanceOutput() :
   pointA = new Vector2.zero(),
   pointB = new Vector2.zero();
}

Constructors

new DistanceOutput() #

DistanceOutput() :
 pointA = new Vector2.zero(),
 pointB = new Vector2.zero();

Properties

double distance #

double distance

int iterations #

number of gjk iterations used

int iterations

final Vector2 pointA #

Closest point on shapeA

final Vector2 pointA

final Vector2 pointB #

Closest point on shapeB

final Vector2 pointB