implement Rectangle::isInside()