content: package com.google.android.material.animation;
  
  import android.animation.TimeInterpolator;
  import android.view.animation.DecelerateInterpolator;
  import android.view.animation.LinearInterpolator;
  import androidx.interpolator.view.animation.FastOutLinearInInterpolator;
  import androidx.interpolator.view.animation.FastOutSlowInInterpolator;
  import androidx.interpolator.view.animation.LinearOutSlowInInterpolator;
  
  public class AnimationUtils {
      public static final TimeInterpolator DECELERATE_INTERPOLATOR = new DecelerateInterpolator();
      public static final TimeInterpolator FAST_OUT_LINEAR_IN_INTERPOLATOR = new FastOutLinearInInterpolator();
      public static final TimeInterpolator FAST_OUT_SLOW_IN_INTERPOLATOR = new FastOutSlowInInterpolator();
      public static final TimeInterpolator LINEAR_INTERPOLATOR = new LinearInterpolator();
      public static final TimeInterpolator LINEAR_OUT_SLOW_IN_INTERPOLATOR = new LinearOutSlowInInterpolator();
  
      public static float lerp(float startValue, float endValue, float fraction) {
          return ((endValue - startValue) * fraction) + startValue;
      }
  
      public static float lerp(float startValue, float endValue, float startFraction, float endFraction, float fraction) {
          return fraction < startFraction ? startValue : fraction > endFraction ? endValue : lerp(startValue, endValue, (fraction - startFraction) / (endFraction - startFraction));
      }
  
      public static int lerp(int startValue, int endValue, float fraction) {
          return Math.round(((float) (endValue - startValue)) * fraction) + startValue;
      }
  }
  