Closed pshtif closed 10 years ago
Well, it actually assumed the y axis going up (as that was the convention used by some of the algorithms).
I'd actually agree to change it to assume a down-wards y axis. Though it will require going through the rest of the code and make the necessary changes to ensure they work as expected (and it'll take some time).
Yea I guessed it assumed but I changed it because the rest of the code didn't work like the earclip triangulation. Once I changed it everything started to work ;)
Now the isCCW method checks actually if the polygon is in clockwise position so I fixed the result to negation so it checks if its really in counterclockwise position.