private void calcBitePoint(int centerX,int centerY,float circleEdgeX,float circleEdgeY,double biteLine,boolean isFirstBite,boolean isRandomBite){
  double bitePercent;
  if (isFirstBite) {
    biteX=(int)circleEdgeX;
    biteY=(int)circleEdgeY;
  }
 else {
    bitePercent=biteRadius / biteLine;
    if (isRandomBite) {
      bitePercent*=bitesTakenMap.get(biteDirection);
    }
 else {
      bitePercent*=(numBitesForOneDirection - numBitesForOneDirectionLeft);
    }
    biteX=DrawUtils.getPointBetweenTwoPoints(circleEdgeX,centerX,bitePercent);
    biteY=DrawUtils.getPointBetweenTwoPoints(circleEdgeY,centerY,bitePercent);
  }
}

private void calcBitePoint ( int centerX , int centerY , float circleEdgeX , float circleEdgeY , double biteLine , boolean isFirstBite , boolean isRandomBite ) { double bitePercent ; if ( isFirstBite ) { biteX = ( int ) circleEdgeX ; biteY = ( int ) circleEdgeY ; } else { bitePercent = biteRadius / biteLine ; if ( isRandomBite ) { bitePercent *= bitesTakenMap . get ( biteDirection ) ; } else { bitePercent *= ( numBitesForOneDirection - numBitesForOneDirectionLeft ) ; } biteX = DrawUtils . getPointBetweenTwoPoints ( circleEdgeX , centerX , bitePercent ) ; biteY = DrawUtils . getPointBetweenTwoPoints ( circleEdgeY , centerY , bitePercent ) ; } }
method for calculating bite point for random & one direction options
