Calculate the moment of inertia for a solid polygon shape assuming it's center of gravity is at it's centroid. The offset is added to each vertex.

cpMomentForPoly(m, count, verts, offset, radius)

Arguments

m

[cpFloat]

count

[int]

verts

[cpVect *]

offset

[cpVect *]

radius

[cpFloat]

Value

[cpFloat]

Details

C function prototype: CP_EXPORT cpFloat cpMomentForPoly(cpFloat m, int count, const cpVect *verts, cpVect offset, cpFloat radius);