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 ; }
Check if this rectangle contains a point