//----- //return whether point is inside rectangle public bool contains(int x, int y) { return(rect.contains(x, y)); }