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
public abstract class Interpolationd extends java.lang.ObjectTakes a linear value in the range of 0-1 and outputs a (usually) non-linear, interpolated value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInterpolationd.Bouncestatic classInterpolationd.BounceInstatic classInterpolationd.BounceOutstatic classInterpolationd.Elasticstatic classInterpolationd.ElasticInstatic classInterpolationd.ElasticOutstatic classInterpolationd.Expstatic classInterpolationd.ExpInstatic classInterpolationd.ExpOutstatic classInterpolationd.Powstatic classInterpolationd.PowInstatic classInterpolationd.PowOutstatic classInterpolationd.Swingstatic classInterpolationd.SwingInstatic classInterpolationd.SwingOut
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Interpolationd()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract doubleapply(double a)doubleapply(double start, double end, double a)
-
-
-
Field Detail
-
linear
public static final Interpolationd linear
-
smooth
public static final Interpolationd smooth
Aka "smoothstep".
-
smooth2
public static final Interpolationd smooth2
-
smoother
public static final Interpolationd smoother
By Ken Perlin.
-
fade
public static final Interpolationd fade
-
pow2
public static final Interpolationd.Pow pow2
-
pow2In
public static final Interpolationd.PowIn pow2In
Slow, then fast.
-
slowFast
public static final Interpolationd.PowIn slowFast
-
pow2Out
public static final Interpolationd.PowOut pow2Out
Fast, then slow.
-
fastSlow
public static final Interpolationd.PowOut fastSlow
-
pow2InInverse
public static final Interpolationd pow2InInverse
-
pow2OutInverse
public static final Interpolationd pow2OutInverse
-
pow3
public static final Interpolationd.Pow pow3
-
pow3In
public static final Interpolationd.PowIn pow3In
-
pow3Out
public static final Interpolationd.PowOut pow3Out
-
pow3InInverse
public static final Interpolationd pow3InInverse
-
pow3OutInverse
public static final Interpolationd pow3OutInverse
-
pow4
public static final Interpolationd.Pow pow4
-
pow4In
public static final Interpolationd.PowIn pow4In
-
pow4Out
public static final Interpolationd.PowOut pow4Out
-
pow5
public static final Interpolationd.Pow pow5
-
pow5In
public static final Interpolationd.PowIn pow5In
-
pow5Out
public static final Interpolationd.PowOut pow5Out
-
sine
public static final Interpolationd sine
-
sineIn
public static final Interpolationd sineIn
-
sineOut
public static final Interpolationd sineOut
-
exp10
public static final Interpolationd.Exp exp10
-
exp10In
public static final Interpolationd.ExpIn exp10In
-
exp10Out
public static final Interpolationd.ExpOut exp10Out
-
exp5
public static final Interpolationd.Exp exp5
-
exp5In
public static final Interpolationd.ExpIn exp5In
-
exp5Out
public static final Interpolationd.ExpOut exp5Out
-
circle
public static final Interpolationd circle
-
circleIn
public static final Interpolationd circleIn
-
circleOut
public static final Interpolationd circleOut
-
elastic
public static final Interpolationd.Elastic elastic
-
elasticIn
public static final Interpolationd.ElasticIn elasticIn
-
elasticOut
public static final Interpolationd.ElasticOut elasticOut
-
swing
public static final Interpolationd.Swing swing
-
swingIn
public static final Interpolationd.SwingIn swingIn
-
swingOut
public static final Interpolationd.SwingOut swingOut
-
bounce
public static final Interpolationd.Bounce bounce
-
bounceIn
public static final Interpolationd.BounceIn bounceIn
-
bounceOut
public static final Interpolationd.BounceOut bounceOut
-
-