question: public void updateCurrentLocation ( float animationSpeed , float updateRadius ) { float distanceX = Math . abs ( locationOnScreenX - currentLocationX ) ; float distanceY = Math . abs ( locationOnScreenY - currentLocationY ) ; if ( distanceX > updateRadius ) { if ( currentLocationX < locationOnScreenX ) { currentLocationX += ( animationSpeed * distanceX ) ; } else if ( currentLocationX > locationOnScreenX ) { currentLocationX -= ( animationSpeed * distanceX ) ; } } if ( distanceY > updateRadius ) { if ( currentLocationY < locationOnScreenY ) { currentLocationY += ( animationSpeed * distanceY ) ; } else if ( currentLocationY > locationOnScreenY ) { currentLocationY -= ( animationSpeed * distanceY ) ; } } if ( updateValueIsOld ( ) ) { freshLocationValue = false ; } else { freshLocationValue = true ; } }
target:  Incremeent the current location to be nearer to the desired location.