26 lines
1.0 KiB
Java
26 lines
1.0 KiB
Java
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;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class AnimationUtils {
|
|
public static final TimeInterpolator a = new LinearInterpolator();
|
|
public static final TimeInterpolator b = new FastOutSlowInInterpolator();
|
|
public static final TimeInterpolator c = new FastOutLinearInInterpolator();
|
|
public static final TimeInterpolator d = new LinearOutSlowInInterpolator();
|
|
public static final TimeInterpolator e = new DecelerateInterpolator();
|
|
|
|
public static float a(float f, float f2, float f3) {
|
|
return f + (f3 * (f2 - f));
|
|
}
|
|
|
|
public static int a(int i, int i2, float f) {
|
|
return i + Math.round(f * (i2 - i));
|
|
}
|
|
}
|