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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Interpolationd.Bouncestatic Interpolationd.BounceInstatic Interpolationd.BounceOutstatic Interpolationdstatic Interpolationdstatic Interpolationdstatic Interpolationd.Elasticstatic Interpolationd.ElasticInstatic Interpolationd.ElasticOutstatic Interpolationd.Expstatic Interpolationd.ExpInstatic Interpolationd.ExpOutstatic Interpolationd.Expstatic Interpolationd.ExpInstatic Interpolationd.ExpOutstatic Interpolationdstatic Interpolationd.PowOutstatic Interpolationdstatic Interpolationd.Powstatic Interpolationd.PowInSlow, then fast.static Interpolationdstatic Interpolationd.PowOutFast, then slow.static Interpolationdstatic Interpolationd.Powstatic Interpolationd.PowInstatic Interpolationdstatic Interpolationd.PowOutstatic Interpolationdstatic Interpolationd.Powstatic Interpolationd.PowInstatic Interpolationd.PowOutstatic Interpolationd.Powstatic Interpolationd.PowInstatic Interpolationd.PowOutstatic Interpolationdstatic Interpolationdstatic Interpolationdstatic Interpolationd.PowInstatic InterpolationdAka "smoothstep".static Interpolationdstatic InterpolationdBy Ken Perlin.static Interpolationd.Swingstatic Interpolationd.SwingInstatic Interpolationd.SwingOut -
Constructor Summary
Constructors -
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.
-