Dart Documentationbox2dSimplexVertex

SimplexVertex class

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

 SimplexVertex() :
   wA = new vec2.zero(),
   wB = new vec2.zero(),
   w = new vec2.zero(),
   a = 0,
   indexA = 0,
   indexB = 0 { }

 void setFrom(SimplexVertex sv) {
   wA.copyFrom(sv.wA);
   wB.copyFrom(sv.wB);
   w.copyFrom(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 vec2.zero(),
 wB = new vec2.zero(),
 w = new vec2.zero(),
 a = 0,
 indexA = 0,
 indexB = 0 { }

Properties

num a #

a

int indexA #

indexA

int indexB #

indexB

final vec2 w #

w

final vec2 wA #

wA

final vec2 wB #

wB

Methods

void setFrom(SimplexVertex sv) #

void setFrom(SimplexVertex sv) {
 wA.copyFrom(sv.wA);
 wB.copyFrom(sv.wB);
 w.copyFrom(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";