Computes the centroid of a ring (the polygon centroid, not the vertex average).
The ring (open or closed)
The centroid, or undefined for a degenerate ring
undefined
Computes the centroid of a ring (the polygon centroid, not the vertex average).