|
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.AnticipateInterpolator
public class AnticipateInterpolator
An Interpolator
where the changes start backwards and than spring forward as the time progresses.
Method Summary | |
---|---|
static AnticipateInterpolator |
$()
Gets a new AnticipateInterpolator from a maintained pool of Interpolator s. |
static AnticipateInterpolator |
$(float tension)
Gets a new AnticipateInterpolator 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 t)
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 AnticipateInterpolator $(float tension)
AnticipateInterpolator
from a maintained pool of Interpolator
s.
tension
- the tension controlling the rate spring effect of the animation
AccelerateInterpolator
public static AnticipateInterpolator $()
AnticipateInterpolator
from a maintained pool of Interpolator
s.
The initial tension is set to .
AnticipateInterpolator
public void finished()
Interpolator
Interpolator
is no longer needed.
finished
in interface Interpolator
public float getInterpolation(float t)
Interpolator
getInterpolation
in interface Interpolator
t
- 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 |