GeometrySingleton.intersectPolygons2d

Intersects polygon_a with polygon_b and returns an array of intersected polygons. This performs constant OPERATION_INTERSECTION between polygons. In other words, returns common area shared by polygons. Returns an empty array if no intersection occurs. 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
intersectPolygons2d
(
in PoolVector2Array polygon_a
,
in PoolVector2Array polygon_b
)

Meta