R/chipmunk.R
cpMomentForPoly.RdCalculate 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)
| m | [ |
|---|---|
| count | [ |
| verts | [ |
| offset | [ |
| radius | [ |
[cpFloat]
C function prototype: CP_EXPORT cpFloat cpMomentForPoly(cpFloat m, int count, const cpVect *verts, cpVect offset, cpFloat radius);