Calculate the signed area of a polygon. A Clockwise winding gives positive area. This is probably backwards from what you expect, but matches Chipmunk's the winding for poly shapes.

cpAreaForPoly(count, verts, radius)

Arguments

count

[int]

verts

[cpVect *]

radius

[cpFloat]

Value

[cpFloat]

Details

C function prototype: CP_EXPORT cpFloat cpAreaForPoly(const int count, const cpVect *verts, cpFloat radius);