Click or drag to resize

GeometryIsPointInPolygon Method

Returns true if point is inside polygon or if it's located exactly on polygon's boundary, otherwise returns false.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static bool IsPointInPolygon(
	Vector2 point,
	Vector2[] polygon
)

Parameters

point
Type: GodotVector2

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

polygon
Type: GodotVector2

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

Return Value

Type: Boolean

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

See Also