Function GeometrySingleton.mergePolygons2d

Merges (combines) polygon_a and polygon_b and returns an array of merged polygons. This performs constant OPERATION_UNION between polygons. The operation may result in an outer polygon (boundary) and inner polygon (hole) produced which could be distinguished by calling isPolygonClockwise.

Array mergePolygons2d (
  const(PoolArray!(godot.core.vector2.Vector2)) polygon_a,
  const(PoolArray!(godot.core.vector2.Vector2)) polygon_b
) nothrow @nogc;