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 Interpolationd.Bounce
static Interpolationd.BounceIn
static Interpolationd.BounceOut
static Interpolationd
static Interpolationd
static Interpolationd
static Interpolationd.Elastic
static Interpolationd.ElasticIn
static Interpolationd.ElasticOut
static Interpolationd.Exp
static Interpolationd.ExpIn
static Interpolationd.ExpOut
static Interpolationd.Exp
static Interpolationd.ExpIn
static Interpolationd.ExpOut
static Interpolationd
static Interpolationd.PowOut
static Interpolationd
static Interpolationd.Pow
static Interpolationd.PowIn
Slow, then fast.static Interpolationd
static Interpolationd.PowOut
Fast, then slow.static Interpolationd
static Interpolationd.Pow
static Interpolationd.PowIn
static Interpolationd
static Interpolationd.PowOut
static Interpolationd
static Interpolationd.Pow
static Interpolationd.PowIn
static Interpolationd.PowOut
static Interpolationd.Pow
static Interpolationd.PowIn
static Interpolationd.PowOut
static Interpolationd
static Interpolationd
static Interpolationd
static Interpolationd.PowIn
static Interpolationd
Aka "smoothstep".static Interpolationd
static Interpolationd
By Ken Perlin.static Interpolationd.Swing
static Interpolationd.SwingIn
static 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.
-