@Immutable public interface Interpolator
interpolate(double)
method.
This interface is implemented by built-in interpolators. Applications may choose to implement their own interpolator to get custom interpolation behavior.
AccelerationInterpolator
,
DiscreteInterpolator
,
LinearInterpolator
,
SplineInterpolator
Modifier and Type | Method and Description |
---|---|
double |
interpolate(double fraction)
This function takes an input value between 0 and 1 and returns another
value, also between 0 and 1.
|
@RegionEffects(value="reads All") double interpolate(double fraction)
fraction
- a value between 0 and 1, inclusive, representing the elapsed
fraction of a time interval.