Interface Easing

All Known Implementing Classes:
Easings
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
A functional interface representing an interpolation function.

Easing functions specify the rate of change of a parameter over time, allowing for natural-looking animations (acceleration and deceleration).

  • Method Summary

    Modifier and Type
    Method
    Description
    double
    apply(double t)
    Applies the easing transformation to the given input.
  • Method Details

    • apply

      double apply(double t)
      Applies the easing transformation to the given input.
      Parameters:
      t - The input value, typically normalized between 0.0 and 1.0, representing the percentage of completion.
      Returns:
      The transformed value, usually between 0.0 and 1.0 (though some functions like Back or Elastic may exceed these bounds).