I have a problem to determine how 3 vertices are connected...
the 3 vertices are placed on a xy plane...
and I have a winding order (v1-v2-v3)...
Code: Select all
// get the vertex positions
position2d v1 = getRandomXYPosition();
position2d v2 = getRandomXYPosition();
position2d v3 = getRandomXYPosition();
// what is the winding order ???
bool cw = isOrderClockwise(v1, v2, v3);
(maybe I'm missing something obvious )