interpolate
public void interpolate(Circle flyweight,
Circle initialValue,
Circle currentValue,
float alpha)
The interpolation algorithm. This takes the initial value, the current value, and the ratio of initial value to current value. The result is then stored in the flyweight argument for use.
- Specified by:
interpolate
in interface Interpolator<Circle>
- Parameters:
flyweight
- the flyweight value is where the results are storedinitialValue
- the initial valuecurrentValue
- the current valuealpha
- a value between 0.0f to 1.0f. When alpha is 0.0f, the value should always be the initial value. When alpha is at 1.0f, the value should always be the current value.