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.

@FunctionalInterface public interface Easing
Easing curves, each mapping a progress in [0, 1] to an eased value (0 at the start, 1 at the end).
  • Field Details

    • LINEAR

      static final Easing LINEAR
    • STEP

      static final Easing STEP
    • SINE_IN

      static final Easing SINE_IN
    • SINE_OUT

      static final Easing SINE_OUT
    • SINE_IN_OUT

      static final Easing SINE_IN_OUT
    • QUAD_IN

      static final Easing QUAD_IN
    • QUAD_OUT

      static final Easing QUAD_OUT
    • QUAD_IN_OUT

      static final Easing QUAD_IN_OUT
    • CUBIC_IN

      static final Easing CUBIC_IN
    • CUBIC_OUT

      static final Easing CUBIC_OUT
    • CUBIC_IN_OUT

      static final Easing CUBIC_IN_OUT
    • EXPO_IN

      static final Easing EXPO_IN
    • EXPO_OUT

      static final Easing EXPO_OUT
    • BACK_OUT

      static final Easing 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

      default Easing reversed()
      This curve played backwards: starts at the end and eases towards the start.