public boolean contains ( int xp , int yp ) { if ( xp < x ) { return false ; } if ( yp < y ) { return false ; } if ( xp >= x + width ) { return false ; } if ( yp >= y + height ) { return false ; } return true ; }
Check if this sprite location contains the given x y position