public static class RMInterpolator.Bounce extends RMInterpolator
RMInterpolator.Bounce, RMInterpolator.Direction, RMInterpolator.Periodic
Modifier and Type | Field and Description |
---|---|
double |
_elasticity |
int |
_numBounces |
BOUNCE, EASE_BOTH, EASE_BOTH_CUBIC, EASE_IN, EASE_IN_CUBIC, EASE_OUT, EASE_OUT_CUBIC, LINEAR, ONE_SHOT, RANDOM
Constructor and Description |
---|
Bounce(int nBounces,
double elasticity)
Create a new Bounce interpolator.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of this interpolator.
|
double |
getRatio(double aRatio)
Returns a new ratio given normal ratio.
|
void |
setBounceParameters(int numBounces,
double elasticity)
Sets the interpolator parameters
numBounces is the number of bounces taken before stopping at the destination.
|
clone, getDirection, getInterpolator, getInterpolator, getInterpolatorCount, getNewInterpolator, getValue, getValue, interpolate, interpolateBoth, interpolateOut, isShared, toString
public Bounce(int nBounces, double elasticity)
public void setBounceParameters(int numBounces, double elasticity)
public double getRatio(double aRatio)
RMInterpolator
getRatio
in class RMInterpolator
public java.lang.String getName()
RMInterpolator
getName
in class RMInterpolator