Package icyllis.modernui.animation
Class BounceInterpolator
java.lang.Object
icyllis.modernui.animation.BounceInterpolator
- All Implemented Interfaces:
TimeInterpolator
-
Field Summary
Fields inherited from interface icyllis.modernui.animation.TimeInterpolator
ACCELERATE, ACCELERATE_DECELERATE, ANTICIPATE, ANTICIPATE_OVERSHOOT, BOUNCE, DECELERATE, DECELERATE_CUBIC, DECELERATE_QUINTIC, LINEAR, OVERSHOOT, SINE, VISCOUS_FLUID
-
Method Summary
-
Method Details
-
getInterpolation
public float getInterpolation(float t) Description copied from interface:TimeInterpolator
Get interpolation value. This interpolated value is then multiplied by the change in value of an animation to derive the animated value at the current elapsed animation time.- Specified by:
getInterpolation
in interfaceTimeInterpolator
- Parameters:
t
- [0.0, 1.0] determined by timeline, 0.0 represents the start and 1.0 represents the end- Returns:
- the interpolated value. this value can be more than 1.0 for those overshoot their targets, or less than 0 for those undershoot their targets.
-