Expand description
Calculate the centroid of a Geometry
.
Traits
Calculation of the centroid.
The centroid is the arithmetic mean position of all points in the shape.
Informally, it is the point at which a cutout of the shape could be perfectly
balanced on the tip of a pin.
The geometric centroid of a convex object always lies in the object.
A non-convex object might have a centroid that is outside the object itself.