Calculate Perimeter/Area/Centroid of a Simple Polygon