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 final Interpolationd.Bouncestatic final Interpolationd.BounceInstatic final Interpolationd.BounceOutstatic final Interpolationdstatic final Interpolationdstatic final Interpolationdstatic final Interpolationd.Elasticstatic final Interpolationd.ElasticInstatic final Interpolationd.ElasticOutstatic final Interpolationd.Expstatic final Interpolationd.ExpInstatic final Interpolationd.ExpOutstatic final Interpolationd.Expstatic final Interpolationd.ExpInstatic final Interpolationd.ExpOutstatic final Interpolationdstatic final Interpolationd.PowOutstatic final Interpolationdstatic final Interpolationd.Powstatic final Interpolationd.PowInSlow, then fast.static final Interpolationdstatic final Interpolationd.PowOutFast, then slow.static final Interpolationdstatic final Interpolationd.Powstatic final Interpolationd.PowInstatic final Interpolationdstatic final Interpolationd.PowOutstatic final Interpolationdstatic final Interpolationd.Powstatic final Interpolationd.PowInstatic final Interpolationd.PowOutstatic final Interpolationd.Powstatic final Interpolationd.PowInstatic final Interpolationd.PowOutstatic final Interpolationdstatic final Interpolationdstatic final Interpolationdstatic final Interpolationd.PowInstatic final InterpolationdAka "smoothstep".static final Interpolationdstatic final InterpolationdBy Ken Perlin.static final Interpolationd.Swingstatic final Interpolationd.SwingInstatic final 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.
-