Interface EasingFunction

All Known Implementing Classes:
CubicBezierEasing, Easing, StepEasing

public interface EasingFunction
  • 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.