Skip to content

format

typescript
Rect.Contains(point)

class: Rect

description

Determines whether a point is inside a rectangle.

parameter

param_nametypedescription
pointVector2The coordinates of the point to be checked.

reture

typedescription
booleanReturns true if the point is inside the rectangle, otherwise returns false.

code example