POLYGEOM computes area, centroid location, area moments of inertia and perimeter of closed polygons.
Author: H.J. Sommer
The outputs are erroneous for the following input:
x = [1.0000 0.5000 0.8333 0.5694]
y = [1.0000 0.1667 0.5000 0.5694]
The centroid is computed as (0.8801,1.1496) which is outside the parallelogram formed by the input points.