|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.scenes.scene2d.interpolators.AccelerateDecelerateInterpolator
public class AccelerateDecelerateInterpolator
An interpolator where the rate of change starts out slowly, grows over time and ends slowly.
Method Summary | |
---|---|
static AccelerateDecelerateInterpolator |
$()
Gets a new AccelerateDecelerateInterpolator from a maintained pool of Interpolator s. |
static AccelerateDecelerateInterpolator |
$(float factor)
Gets a new AccelerateDecelerateInterpolator from a maintained pool of Interpolator s. |
Interpolator |
copy()
Creates a copy of this interpolator. |
void |
finished()
Called when the animation has finished and the Interpolator is no longer needed. |
float |
getInterpolation(float input)
Maps a point in the animation duration to a multiplier to be applied to the transformations of an animation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AccelerateDecelerateInterpolator $(float factor)
AccelerateDecelerateInterpolator
from a maintained pool of Interpolator
s.
factor
- the factor controlling the rate of speed change
AccelerateDecelerateInterpolator
public static AccelerateDecelerateInterpolator $()
AccelerateDecelerateInterpolator
from a maintained pool of Interpolator
s.
The initial factor is set to .
AccelerateDecelerateInterpolator
public void finished()
Interpolator
Interpolator
is no longer needed.
finished
in interface Interpolator
public float getInterpolation(float input)
Interpolator
getInterpolation
in interface Interpolator
input
- A value between 0 and 1.0 indicating our current point in the animation where 0 represents the start and 1.0
represents the end
Interpolator
s which overshoot their targets, or
less than 0 for Interpolator
s that undershoot their targets.public Interpolator copy()
Interpolator
copy
in interface Interpolator
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |