Convex Polygons - Centroid

Compute the center of gravity(centroid) of a convex polygon.


SVG Source:
Javascript: