math.area.poly

Syntax

f = math.area.poly(l)

Get the area of a polygon. The list contains the 2D vertices of the polygon that is assumed to be planar and convex.

Returns:

f - area of polygon

Arguments:

l - list of 2D polygon vertices