contains method

bool contains(
  1. int px,
  2. int py
)

Implementation

bool contains(int px, int py) =>
    px >= x && px < right && py >= y && py < bottom;