@ Pure static boolean contains ( int region , double cutX , double cutY , double pointX , double pointY ) { switch ( IcosepQuadTreeZone . values ( ) [ region ] ) { case SOUTH_WEST : return pointX <= cutX && pointY <= cutY ; case SOUTH_EAST : return pointX >= cutX && pointY <= cutY ; case NORTH_WEST : return pointX <= cutX && pointY >= cutY ; case NORTH_EAST : return pointX >= cutX && pointY >= cutY ; case ICOSEP : return true ; default : } return false ; }
Replies if the given region contains the given point .