GeometrySingleton.excludePolygons2d

Mutually excludes common area defined by intersection of polygon_a and polygon_b (see intersectPolygons2d) and returns an array of excluded polygons. This performs constant OPERATION_XOR between polygons. In other words, returns all but common area between polygons. The operation may result in an outer polygon (boundary) and inner polygon (hole) produced which could be distinguished by calling isPolygonClockwise.

struct GeometrySingleton
@nogc nothrow
Array
excludePolygons2d
(
in PoolVector2Array polygon_a
,
in PoolVector2Array polygon_b
)

Meta