Interface Easing
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Easing curves, each mapping a progress in
[0, 1] to an eased value (0 at the start, 1 at the end).-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EasingOvershoots the end slightly, then settles.static final Easingstatic final Easingstatic final Easingstatic final Easingstatic final Easingstatic final Easingstatic final Easingstatic final Easingstatic final Easingstatic final Easingstatic final Easingstatic final Easingstatic final Easing -
Method Summary
Modifier and TypeMethodDescriptionfloatapply(float progress) Eases a progress in[0, 1].default floatapplyClamped(float progress) This curve clamped: progress outside[0, 1]is pinned to its ends.default Easingreversed()This curve played backwards: starts at the end and eases towards the start.
-
Field Details
-
LINEAR
-
STEP
-
SINE_IN
-
SINE_OUT
-
SINE_IN_OUT
-
QUAD_IN
-
QUAD_OUT
-
QUAD_IN_OUT
-
CUBIC_IN
-
CUBIC_OUT
-
CUBIC_IN_OUT
-
EXPO_IN
-
EXPO_OUT
-
BACK_OUT
Overshoots the end slightly, then settles.
-
-
Method Details
-
apply
float apply(float progress) Eases a progress in[0, 1]. -
applyClamped
default float applyClamped(float progress) This curve clamped: progress outside[0, 1]is pinned to its ends. -
reversed
This curve played backwards: starts at the end and eases towards the start.
-