R/chipmunk.R
cpMomentForCircle.RdCalculate the moment of inertia for a circle. @c r1 and @c r2 are the inner and outer diameters. A solid circle has an inner diameter of 0.
cpMomentForCircle(m, r1, r2, offset)
| m | [ |
|---|---|
| r1 | [ |
| r2 | [ |
| offset | [ |
[cpFloat]
C function prototype: CP_EXPORT cpFloat cpMomentForCircle(cpFloat m, cpFloat r1, cpFloat r2, cpVect offset);