com.badlogic.gdx.math
Class Interpolation
java.lang.Object
com.badlogic.gdx.math.Interpolation
- Direct Known Subclasses:
- Interpolation.BounceOut, Interpolation.Elastic, Interpolation.Exp, Interpolation.Pow, Interpolation.Swing, Interpolation.SwingIn, Interpolation.SwingOut
public abstract class Interpolation
- extends Object
Takes a linear value in the range of 0-1 and outputs a (usually) non-linear, interpolated value.
- Author:
- Nathan Sweet
Method Summary |
abstract float |
apply(float a)
|
float |
apply(float start,
float end,
float a)
|
linear
public static final Interpolation linear
fade
public static final Interpolation fade
pow2
public static final Interpolation.Pow pow2
pow2In
public static final Interpolation.PowIn pow2In
pow2Out
public static final Interpolation.PowOut pow2Out
pow3
public static final Interpolation.Pow pow3
pow3In
public static final Interpolation.PowIn pow3In
pow3Out
public static final Interpolation.PowOut pow3Out
pow4
public static final Interpolation.Pow pow4
pow4In
public static final Interpolation.PowIn pow4In
pow4Out
public static final Interpolation.PowOut pow4Out
pow5
public static final Interpolation.Pow pow5
pow5In
public static final Interpolation.PowIn pow5In
pow5Out
public static final Interpolation.PowOut pow5Out
sine
public static final Interpolation sine
sineIn
public static final Interpolation sineIn
sineOut
public static final Interpolation sineOut
exp10
public static final Interpolation exp10
exp10In
public static final Interpolation exp10In
exp10Out
public static final Interpolation exp10Out
exp5
public static final Interpolation exp5
exp5In
public static final Interpolation exp5In
exp5Out
public static final Interpolation exp5Out
circle
public static final Interpolation circle
circleIn
public static final Interpolation circleIn
circleOut
public static final Interpolation circleOut
elastic
public static final Interpolation.Elastic elastic
elasticIn
public static final Interpolation.Elastic elasticIn
elasticOut
public static final Interpolation.Elastic elasticOut
swing
public static final Interpolation swing
swingIn
public static final Interpolation swingIn
swingOut
public static final Interpolation swingOut
bounce
public static final Interpolation bounce
bounceIn
public static final Interpolation bounceIn
bounceOut
public static final Interpolation bounceOut
Interpolation
public Interpolation()
apply
public abstract float apply(float a)
- Parameters:
a
- Alpha value between 0 and 1.
apply
public float apply(float start,
float end,
float a)
- Parameters:
a
- Alpha value between 0 and 1.
Copyright © 2013. All Rights Reserved.