math.area.poly

Syntax

f = math.area.poly(m)

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

Returns:f - area of polygon
Arguments:m - map of 2D polygon vertices