public class CubicInterpolator extends EasingInterpolator
f(x) = x3
.
This interpolator accelerates faster than the QuadraticInterpolator
and decelerates later.
The following curve illustrates the interpolation.
The math in this class is taken from
http://www.robertpenner.com/easing/.easingModeProperty
Constructor and Description |
---|
CubicInterpolator()
Default constructor.
|
CubicInterpolator(EasingMode easingMode)
Constructs the interpolator with a specific easing mode.
|
Modifier and Type | Method and Description |
---|---|
protected double |
baseCurve(double v)
Defines the base curve for the interpolator.
|
curve, easingModeProperty, getEasingMode, setEasingMode
public CubicInterpolator()
public CubicInterpolator(EasingMode easingMode)
easingMode
- The easing mode.protected double baseCurve(double v)
EasingInterpolator
baseCurve
in class EasingInterpolator
v
- The normalized value/time/progress of the interpolation (between 0 and 1).Interpolator.curve(double)
Copyright © 2013 ExtFX. All Rights Reserved.