geidav / ombb-rotating-calipers

Computing oriented minimum bounding boxes using Rotating Calipers
http://geidav.wordpress.com/2014/01/23/computing-oriented-minimum-bounding-boxes-in-2d/
Creative Commons Zero v1.0 Universal
38 stars 15 forks source link

Convex Hull computed is counter clockwise and not clockwise #2

Open keldaan-ag opened 6 years ago

keldaan-ag commented 6 years ago

Hello, I went into a problem when using your (otherwise very nice :) ) module:

Line 14 in convexhull.js:

// returns convex hull in CW order

should be

// returns convex hull in CCW order

as the order of points is counter clockwise in the hull.

Cheers,

geidav commented 6 years ago

Hi!

Thanks for letting me know. I'll look into it.

David