IsConvex() ,PolygonArea() for Polygons

Monkey Forums/Monkey Code/IsConvex() ,PolygonArea() for Polygons

Difference(Posted 2011) [#1]
An answer to http://www.monkeycoder.co.nz/Community/posts.php?topic=1657


[EDIT] Version with slightly more elegant point enumeration



hardcoal(Posted 2011) [#2]
great work


impixi(Posted 2011) [#3]
Here's a function to calculate a polygon's centroid (makes use of your PolygonArea function):