code: public boolean contains(float xp, float yp) {
  	    checkPoints();
  	    
  		if (xp <= getX()) {
  			return false;
  		}
  		if (yp <= getY()) {
  			return false;
  		}
  		if (xp >= maxX) {
  			return false;
  		}
  		if (yp >= maxY) {
  			return false;
  		}
  		
  		return true;
  	}
docs: Check if this rectangle contains a point
  
  @param xp The x coordinate of the point to check
  @param yp The y coordinate of the point to check
  @return True if the point is within the rectangle