public interface Interpolator
interpolate(float)
method.
This interface is implemented by built-in interpolators.
Applications may choose to implement
their own Interpolator to get custom interpolation behavior.Modifier and Type | Method and Description |
---|---|
float |
interpolate(float fraction)
This function takes an input value between 0 and 1 and returns
another value, also between 0 and 1.
|
float interpolate(float fraction)
fraction
- a value between 0 and 1, representing the elapsed
fraction of a time interval (either an entire animation cycle or an
interval between two KeyTimes, depending on where this Interpolator has
been set)