Click or drag to resize

GeometryIntersectPolylineWithPolygon2d Method

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

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

Parameters

polyline
Type: GodotVector2

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

polygon
Type: GodotVector2

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

Return Value

Type: Array

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

See Also