private boolean checkCoarseCollision(BaseRect target,float left,float right,float bottom,float top){
  float xpos, ypos, xscale, yscale;
  float targLeft, targRight, targBottom, targTop;
  xpos=target.getXPosition();
  ypos=target.getYPosition();
  xscale=target.getXScale();
  yscale=target.getYScale();
  targLeft=xpos - xscale;
  targRight=xpos + xscale;
  targBottom=ypos - yscale;
  targTop=ypos + yscale;
  float checkLeft=targLeft > left ? targLeft : left;
  float checkRight=targRight < right ? targRight : right;
  float checkTop=targBottom > bottom ? targBottom : bottom;
  float checkBottom=targTop < top ? targTop : top;
  if (checkRight > checkLeft && checkBottom > checkTop) {
    return true;
  }
  return false;
}

private boolean checkCoarseCollision ( BaseRect target , float left , float right , float bottom , float top ) { float xpos , ypos , xscale , yscale ; float targLeft , targRight , targBottom , targTop ; xpos = target . getXPosition ( ) ; ypos = target . getYPosition ( ) ; xscale = target . getXScale ( ) ; yscale = target . getYScale ( ) ; targLeft = xpos - xscale ; targRight = xpos + xscale ; targBottom = ypos - yscale ; targTop = ypos + yscale ; float checkLeft = targLeft > left ? targLeft : left ; float checkRight = targRight < right ? targRight : right ; float checkTop = targBottom > bottom ? targBottom : bottom ; float checkBottom = targTop < top ? targTop : top ; if ( checkRight > checkLeft && checkBottom > checkTop ) { return true ; } return false ; }
determines whether the target object could possibly collide with a ball whose current and future position are enclosed by the l / r / b / t values .
