@Immutable public class AccelerationInterpolator extends java.lang.Object implements Interpolator
Instances of this class contain no mutable state and can be safely shared. This class is thread-safe.
Constructor and Description |
---|
AccelerationInterpolator(double acceleration,
double deceleration) |
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.
|
java.lang.String |
toString() |
public AccelerationInterpolator(double acceleration, double deceleration)
@RegionEffects(value="reads Instance") public double interpolate(double fraction)
Interpolator
interpolate
in interface Interpolator
fraction
- a value between 0 and 1, inclusive, representing the elapsed
fraction of a time interval.public java.lang.String toString()
toString
in class java.lang.Object