Rect.contains

bool contains(int px, int py) const @safe nothrow @nogc

Checks if a point is inside the rectangle.

Parameters

pxX coordinate of point
pyY coordinate of point

Returns

true if point is inside the rectangle