Skip to content

centroidPolygon

centroidPolygon(polygon): number[]

Returns a centroid of the given polygon

Parameters

polygon: number[][]

Returns

number[]

Source

graphics/geometry.ts:938