com.badlogic.gdx.math
Class Interpolation

java.lang.Object
  extended by 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

Nested Class Summary
static class Interpolation.Bounce
           
static class Interpolation.BounceIn
           
static class Interpolation.BounceOut
           
static class Interpolation.Elastic
           
static class Interpolation.ElasticIn
           
static class Interpolation.ElasticOut
           
static class Interpolation.Exp
           
static class Interpolation.ExpIn
           
static class Interpolation.ExpOut
           
static class Interpolation.Pow
           
static class Interpolation.PowIn
           
static class Interpolation.PowOut
           
static class Interpolation.Swing
           
static class Interpolation.SwingIn
           
static class Interpolation.SwingOut
           
 
Field Summary
static Interpolation bounce
           
static Interpolation bounceIn
           
static Interpolation bounceOut
           
static Interpolation circle
           
static Interpolation circleIn
           
static Interpolation circleOut
           
static Interpolation.Elastic elastic
           
static Interpolation.Elastic elasticIn
           
static Interpolation.Elastic elasticOut
           
static Interpolation exp10
           
static Interpolation exp10In
           
static Interpolation exp10Out
           
static Interpolation exp5
           
static Interpolation exp5In
           
static Interpolation exp5Out
           
static Interpolation fade
           
static Interpolation linear
           
static Interpolation.Pow pow2
           
static Interpolation.PowIn pow2In
           
static Interpolation.PowOut pow2Out
           
static Interpolation.Pow pow3
           
static Interpolation.PowIn pow3In
           
static Interpolation.PowOut pow3Out
           
static Interpolation.Pow pow4
           
static Interpolation.PowIn pow4In
           
static Interpolation.PowOut pow4Out
           
static Interpolation.Pow pow5
           
static Interpolation.PowIn pow5In
           
static Interpolation.PowOut pow5Out
           
static Interpolation sine
           
static Interpolation sineIn
           
static Interpolation sineOut
           
static Interpolation swing
           
static Interpolation swingIn
           
static Interpolation swingOut
           
 
Constructor Summary
Interpolation()
           
 
Method Summary
abstract  float apply(float a)
           
 float apply(float start, float end, float a)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Interpolation

public Interpolation()
Method Detail

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 © 2014. All Rights Reserved.