Rectangle.containsPoint

Returns true if rect contains the point described by x and y.

class Rectangle
bool
containsPoint
(
int x
,
int y
)

Parameters

x int

X coordinate

y int

Y coordinate

Return Value

Type: bool

true if rect contains the point