troussil / convergents

GNU General Public License v3.0
1 stars 1 forks source link

Counter clockwise triangle generation fixed #21

Closed homeostasie closed 11 years ago

homeostasie commented 11 years ago

Thanks for the fixed,

I manage to generate all the random triangles with three counter clockwise points.

The first point pta is generate on a square (max * max). The second point ptb is at the bottom left (in a random square) from pta and ptc is at the bottom right from ptb.

So the triangle orientation is always counter clockwise.

I validate the test with great value, the computation seems to works without being stop.

Values used during validation :

int max = 500;
int nb_test = 100000;