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.
An easing curve (7.4.0): eased progress for a linear progress
t, both from 0 to
1. A Transition runs one; any function of t with f(0) = 0 and
f(1) = 1 is one, so a mod can pass its own as a lambda.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfloatapply(float t) Eased progress for linear progresst, which is between 0 and 1.
-
Field Details
-
LINEAR
Even speed. -
EASE_OUT
Fast, then settling: a cubic ease-out. -
EASE_IN_OUT
Slow at both ends: a cubic ease-in-out. -
EASE_OUT_BACK
Past the end and back, a small spring: the ease-out-back MenuKit's hotbar slides use.
-
-
Method Details
-
apply
float apply(float t) Eased progress for linear progresst, which is between 0 and 1.
-