public class QuarticInterpolator extends EasingInterpolator
f(x) = x4
.
This interpolator accelerates faster than the CubicInterpolator
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 |
---|
QuarticInterpolator()
Default constructor.
|
QuarticInterpolator(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 QuarticInterpolator()
public QuarticInterpolator(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.