Function GeometrySingleton.intersectPolylineWithPolygon2d

Intersects polyline with polygon and returns an array of intersected polylines. This performs constant OPERATION_INTERSECTION between the polyline and the polygon. This operation can be thought of as chopping a line with a closed shape.

Array intersectPolylineWithPolygon2d (
  const(PoolArray!(godot.core.vector2.Vector2)) polyline,
  const(PoolArray!(godot.core.vector2.Vector2)) polygon
) nothrow @nogc;