polyPerimeter function

Polygon perimeter