Click or drag to resize

GeometryClipPolylineWithPolygon2d Method

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

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static Array ClipPolylineWithPolygon2d(
	Vector2[] polyline,
	Vector2[] polygon
)

Parameters

polyline
Type: GodotVector2

[Missing <param name="polyline"/> documentation for "M:Godot.Geometry.ClipPolylineWithPolygon2d(Godot.Vector2[],Godot.Vector2[])"]

polygon
Type: GodotVector2

[Missing <param name="polygon"/> documentation for "M:Godot.Geometry.ClipPolylineWithPolygon2d(Godot.Vector2[],Godot.Vector2[])"]

Return Value

Type: Array

[Missing <returns> documentation for "M:Godot.Geometry.ClipPolylineWithPolygon2d(Godot.Vector2[],Godot.Vector2[])"]

See Also