Calculate the area of a fattened (capsule shaped) line segment.

cpAreaForSegment(a, b, radius)

Arguments

a

[cpVect *]

b

[cpVect *]

radius

[cpFloat]

Value

[cpFloat]

Details

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