Interface EasingFunction

All Known Implementing Classes:
CubicBezierEasing, Easing, StepEasing
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 EasingFunction
A mathematical function that maps values between 0f and 1f.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    get(float t)
    Applies this easing function to an input value between 0f and 1f.
    default float
    get(float t, float start, float end)
    Applies this easing function to an input value between 0f and 1f and maps the output to a value between start and end.
  • Method Details

    • get

      default float get(float t, float start, float end)
      Applies this easing function to an input value between 0f and 1f and maps the output to a value between start and end.
      Parameters:
      t - Normalized input value (0f to 1f)
      Returns:
      The eased and remapped output value.
    • get

      float get(float t)
      Applies this easing function to an input value between 0f and 1f. Values outside of this range may produce unpredictable results.
      Parameters:
      t - Normalized input value (0f to 1f)
      Returns:
      The eased output value.