Click or drag to resize

Rect2HasPoint Method

Returns true if the Rect2 contains a point, or false otherwise.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public bool HasPoint(
	Vector2 point
)

Parameters

point
Type: GodotVector2
The point to check.

Return Value

Type: Boolean
A bool for whether or not the rect contains `point`.
See Also