GeometryClipPolygons2d Method |
Clips polygon_a against polygon_b and returns an array of clipped polygons. This performs between polygons. Returns an empty array if polygon_b completely overlaps polygon_a.
If polygon_b is enclosed by polygon_a, returns an outer polygon (boundary) and inner polygon (hole) which could be distinguished by calling IsPolygonClockwise(Vector2).
Namespace: Godot
public static Array ClipPolygons2d( Vector2[] polygonA, Vector2[] polygonB )
[Missing <param name="polygonA"/> documentation for "M:Godot.Geometry.ClipPolygons2d(Godot.Vector2[],Godot.Vector2[])"]
[Missing <param name="polygonB"/> documentation for "M:Godot.Geometry.ClipPolygons2d(Godot.Vector2[],Godot.Vector2[])"]
[Missing <returns> documentation for "M:Godot.Geometry.ClipPolygons2d(Godot.Vector2[],Godot.Vector2[])"]