Calculate the natural centroid of a polygon.

cpCentroidForPoly(count, verts)

Arguments

count

[int]

verts

[cpVect *]

Value

[cpVect *]

Details

C function prototype: CP_EXPORT cpVect cpCentroidForPoly(const int count, const cpVect *verts);