Function GeometrySingleton.clipPolylineWithPolygon2d

Clips polyline against polygon and returns an array of clipped polylines. This performs constant OPERATION_DIFFERENCE between the polyline and the polygon. This operation can be thought of as cutting a line with a closed shape.

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