Rectangle.containsPoint

bool containsPoint(int x, int y)

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

Parameters

xX coordinate
yY coordinate

Returns

true if rect contains the point