Calculate the moment of inertia for a line segment. Beveling radius is not supported.

cpMomentForSegment(m, a, b, radius)

Arguments

m

[cpFloat]

a

[cpVect *]

b

[cpVect *]

radius

[cpFloat]

Value

[cpFloat]

Details

C function prototype: CP_EXPORT cpFloat cpMomentForSegment(cpFloat m, cpVect a, cpVect b, cpFloat radius);