Dart Documentationbox2dSimplexVertex

SimplexVertex class

class SimplexVertex {
 final Vector2 wA; // support point in shapeA
 final Vector2 wB; // support point in shapeB
 final Vector2 w; // wB - wA
 double a; // barycentric coordinate for closest point
 int indexA; // wA index
 int indexB; // wB index

 SimplexVertex() :
   wA = new Vector2.zero(),
   wB = new Vector2.zero(),
   w = new Vector2.zero(),
   a = 0.0,
   indexA = 0,
   indexB = 0;

 void setFrom(SimplexVertex sv) {
   wA.setFrom(sv.wA);
   wB.setFrom(sv.wB);
   w.setFrom(sv.w);
   a = sv.a;
   indexA = sv.indexA;
   indexB = sv.indexB;
 }

 String toString() => "wA: $wA, wB: $wB, w: $w";
}

Constructors

new SimplexVertex() #

SimplexVertex() :
 wA = new Vector2.zero(),
 wB = new Vector2.zero(),
 w = new Vector2.zero(),
 a = 0.0,
 indexA = 0,
 indexB = 0;

Properties

double a #

double a

int indexA #

int indexA

int indexB #

int indexB

final Vector2 w #

final Vector2 w

final Vector2 wA #

final Vector2 wA

final Vector2 wB #

final Vector2 wB

Methods

void setFrom(SimplexVertex sv) #

void setFrom(SimplexVertex sv) {
 wA.setFrom(sv.wA);
 wB.setFrom(sv.wB);
 w.setFrom(sv.w);
 a = sv.a;
 indexA = sv.indexA;
 indexB = sv.indexB;
}

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() => "wA: $wA, wB: $wB, w: $w";