Returns the perimeter (sum of edge lengths) of the polygon.
polygon vertices as a flat array [x0, y0, x1, y1, ...]
[x0, y0, x1, y1, ...]
number of vertices to read from vertices
vertices
the perimeter
Returns the perimeter (sum of edge lengths) of the polygon.