math.area.poly

Syntax

f = math.area.poly(lm)

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:m - list of 2D polygon vertices