public void prepare(Rect bound){
  this.bound=bound;
  millisToReachTargetVelocityX=computeMillisToReachTarget(targetVelocityX,initialVelocityX,accelerationX);
  millisToReachTargetVelocityY=computeMillisToReachTarget(targetVelocityY,initialVelocityY,accelerationY);
  millisToReachTargetRotationalVelocity=computeMillisToReachTarget(targetRotationalVelocity,initialRotationalVelocity,rotationalAcceleration);
  millisToReachBound=ttl >= 0 ? ttl : Long.MAX_VALUE;
  final long timeToReachXBound=computeBound(initialX,initialVelocityX,accelerationX,millisToReachTargetVelocityX,targetVelocityX,bound.left - getWidth(),bound.right);
  millisToReachBound=Math.min(timeToReachXBound,millisToReachBound);
  final long timeToReachYBound=computeBound(initialY,initialVelocityY,accelerationY,millisToReachTargetVelocityY,targetVelocityY,bound.top - getHeight(),bound.bottom);
  millisToReachBound=Math.min(timeToReachYBound,millisToReachBound);
  configurePaint(workPaint);
}

public void prepare ( Rect bound ) { this . bound = bound ; millisToReachTargetVelocityX = computeMillisToReachTarget ( targetVelocityX , initialVelocityX , accelerationX ) ; millisToReachTargetVelocityY = computeMillisToReachTarget ( targetVelocityY , initialVelocityY , accelerationY ) ; millisToReachTargetRotationalVelocity = computeMillisToReachTarget ( targetRotationalVelocity , initialRotationalVelocity , rotationalAcceleration ) ; millisToReachBound = ttl >= 0 ? ttl : Long . MAX_VALUE ; final long timeToReachXBound = computeBound ( initialX , initialVelocityX , accelerationX , millisToReachTargetVelocityX , targetVelocityX , bound . left - getWidth ( ) , bound . right ) ; millisToReachBound = Math . min ( timeToReachXBound , millisToReachBound ) ; final long timeToReachYBound = computeBound ( initialY , initialVelocityY , accelerationY , millisToReachTargetVelocityY , targetVelocityY , bound . top - getHeight ( ) , bound . bottom ) ; millisToReachBound = Math . min ( timeToReachYBound , millisToReachBound ) ; configurePaint ( workPaint ) ; }
this method should be called after all of the confetto ' s state variables are configured and before the confetto gets animated .
