Interface Animator.Interpolator

  • All Known Implementing Classes:
    CubicBezierEasing
    Enclosing class:
    Animator
    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 static interface Animator.Interpolator
    Interpolator used by animation to change timing fraction. E.g. for easing.
    • Method Detail

      • interpolate

        float interpolate​(float fraction)
        Interpolate the given fraction and returns a new fraction. Both fractions are in range [0, 1].
        Parameters:
        fraction - the percent (0 to 1) elapsed of the current animation cycle
        Returns:
        new fraction in range [0, 1]