public boolean contains(int x, int y) {return isValid() &&x >= this.x &&y >= this.y &&x < (this.x + this.w) &&y < (this.y + this.h);}
public bool contains(int x, int y){return left < right && top < bottom && x >= left && x < right && y >= top && y <bottom;}