TypeLibF Xojo Plugin

PolygonF.FindCentroid Method

Finds centroid of the polygon.

FindCentroid() as PointF

Parameters

Returns

PointF
The centroid of the polygon.

Remarks

In mathematics and physics, the centroid or geometric center of a two-dimensional region is, informally, the point at which a cardboard cut-out of the region could be perfectly balanced on the tip of a pencil, assuming uniform density and a uniform gravitational field.

See Also

PolygonF Class