Package gaiasky.util.math
Class Interpolationd
java.lang.Object
gaiasky.util.math.Interpolationd
- Direct Known Subclasses:
Interpolationd.BounceOut
,Interpolationd.Elastic
,Interpolationd.Exp
,Interpolationd.Pow
,Interpolationd.Swing
,Interpolationd.SwingIn
,Interpolationd.SwingOut
Takes a linear value in the range of 0-1 and outputs a (usually) non-linear, interpolated value.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Interpolationd.Bounce
static final Interpolationd.BounceIn
static final Interpolationd.BounceOut
static final Interpolationd
static final Interpolationd
static final Interpolationd
static final Interpolationd.Elastic
static final Interpolationd.ElasticIn
static final Interpolationd.ElasticOut
static final Interpolationd.Exp
static final Interpolationd.ExpIn
static final Interpolationd.ExpOut
static final Interpolationd.Exp
static final Interpolationd.ExpIn
static final Interpolationd.ExpOut
static final Interpolationd
static final Interpolationd.PowOut
static final Interpolationd
static final Interpolationd.Pow
static final Interpolationd.PowIn
Slow, then fast.static final Interpolationd
static final Interpolationd.PowOut
Fast, then slow.static final Interpolationd
static final Interpolationd.Pow
static final Interpolationd.PowIn
static final Interpolationd
static final Interpolationd.PowOut
static final Interpolationd
static final Interpolationd.Pow
static final Interpolationd.PowIn
static final Interpolationd.PowOut
static final Interpolationd.Pow
static final Interpolationd.PowIn
static final Interpolationd.PowOut
static final Interpolationd
static final Interpolationd
static final Interpolationd
static final Interpolationd.PowIn
static final Interpolationd
Aka "smoothstep".static final Interpolationd
static final Interpolationd
By Ken Perlin.static final Interpolationd.Swing
static final Interpolationd.SwingIn
static final Interpolationd.SwingOut
-
Constructor Summary
-
Method Summary
-
Field Details
-
linear
-
smooth
Aka "smoothstep". -
smooth2
-
smoother
By Ken Perlin. -
fade
-
pow2
-
pow2In
Slow, then fast. -
slowFast
-
pow2Out
Fast, then slow. -
fastSlow
-
pow2InInverse
-
pow2OutInverse
-
pow3
-
pow3In
-
pow3Out
-
pow3InInverse
-
pow3OutInverse
-
pow4
-
pow4In
-
pow4Out
-
pow5
-
pow5In
-
pow5Out
-
sine
-
sineIn
-
sineOut
-
exp10
-
exp10In
-
exp10Out
-
exp5
-
exp5In
-
exp5Out
-
circle
-
circleIn
-
circleOut
-
elastic
-
elasticIn
-
elasticOut
-
swing
-
swingIn
-
swingOut
-
bounce
-
bounceIn
-
bounceOut
-
-
Constructor Details
-
Interpolationd
public Interpolationd()
-
-
Method Details
-
apply
public abstract double apply(double a) - Parameters:
a
- Alpha value between 0 and 1.
-
apply
public double apply(double start, double end, double a) - Parameters:
a
- Alpha value between 0 and 1.
-