azrafe7 / hxGeomAlgo

Small collection of computational geometry algorithms in Haxe.
http://azrafe7.github.io/hxGeomAlgo/index.html
Other
159 stars 13 forks source link

FIXED isCCW method #6

Closed pshtif closed 10 years ago

pshtif commented 10 years ago

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.

azrafe7 commented 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).

pshtif commented 10 years ago

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 ;)