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";
}