R/chipmunk.R
cpMomentForSegment.Rd
Calculate the moment of inertia for a line segment. Beveling radius is not supported.
cpMomentForSegment(m, a, b, radius)
m | [ |
---|---|
a | [ |
b | [ |
radius | [ |
[cpFloat
]
C function prototype: CP_EXPORT cpFloat cpMomentForSegment(cpFloat m, cpVect a, cpVect b, cpFloat radius);