math.area.intersect.poly.poly

Syntax

f = math.area.intersect.poly.poly(m1,m2)

Get the area of overlap of polygons. The maps, representing the polygons, can contain either 2D or 3D vectors corresponding to the polygon positions. If 3D vectors are given, the second polygon is projected onto the plane of the first polygon. These methods assume that the polygons are planar and convex.

Returns:

f - area of intersection

Arguments:

m1 - map of 2D or 3D vertices of the first polygon

m2 - map of 2D or 3D vertices of the second polygon