Package arc.math
Interface Interp
- All Known Implementing Classes:
Interp.Bounce,Interp.BounceIn,Interp.BounceOut,Interp.Elastic,Interp.ElasticIn,Interp.ElasticOut,Interp.Exp,Interp.ExpIn,Interp.ExpOut,Interp.Pow,Interp.PowIn,Interp.PowOut,Interp.Swing,Interp.SwingIn,Interp.SwingOut
public interface Interp
Takes a Linear value in the range of 0-1 and outputs a (usually) non-Linear, interpolated value.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Interp.Bouncestatic final Interp.BounceInstatic final Interp.BounceOutstatic final Interpstatic final Interpstatic final Interpstatic final Interp.Elasticstatic final Interp.ElasticInstatic final Interp.ElasticOutstatic final Interp.Expstatic final Interp.ExpInstatic final Interp.ExpOutstatic final Interp.Expstatic final Interp.ExpInstatic final Interp.ExpOutstatic final Interpstatic final Interp.PowOutstatic final Interpstatic final Interpstatic final Interp.PowInstatic final Interp.PowOutstatic final Interp.Powstatic final Interp.PowInSlow, then fast.static final Interpstatic final Interp.PowOutFast, then slow.static final Interpstatic final Interp.Powstatic final Interp.PowInstatic final Interpstatic final Interp.PowOutstatic final Interpstatic final Interp.Powstatic final Interp.PowInstatic final Interp.PowOutstatic final Interp.Powstatic final Interp.PowInstatic final Interp.PowOutstatic final Interpstatic final Interpstatic final Interpstatic final Interpstatic final Interpstatic final Interp.PowInstatic final InterpAka "smoothstep".static final Interpstatic final InterpBy Ken Perlin.static final Interp.Swingstatic final Interp.SwingInstatic final Interp.SwingOutstatic final Interp -
Method Summary
-
Field Details
-
linear
-
reverse
-
smooth
Aka "smoothstep". -
smooth2
-
one
-
zero
-
slope
-
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
-
pow10In
-
pow10Out
-
pow5Out
-
sine
-
sineIn
-
sineOut
-
exp10
-
exp10In
-
exp10Out
-
exp5
-
exp5In
-
exp5Out
-
circle
-
circleIn
-
circleOut
-
elastic
-
elasticIn
-
elasticOut
-
swing
-
swingIn
-
swingOut
-
bounce
-
bounceIn
-
bounceOut
-
-
Method Details
-
apply
float apply(float a) - Parameters:
a- Alpha value between 0 and 1.
-
apply
default float apply(float start, float end, float a) - Parameters:
a- Alpha value between 0 and 1.
-