You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1023 B
36 lines
1023 B
package p050q0;
|
|
|
|
import android.view.animation.Interpolator;
|
|
|
|
/* renamed from: q0.d reason: invalid class name */
|
|
/* loaded from: classes.dex */
|
|
public abstract class AbstractanimationInterpolatorC1564d implements Interpolator {
|
|
|
|
/* renamed from: a */
|
|
public final float[] f3633a;
|
|
|
|
/* renamed from: b */
|
|
public final float f3634b;
|
|
|
|
public AbstractanimationInterpolatorC1564d(float[] fArr) {
|
|
this.f3633a = fArr;
|
|
this.f3634b = 1.0f / (fArr.length - 1);
|
|
}
|
|
|
|
@Override // android.animation.TimeInterpolator
|
|
public float getInterpolation(float f) {
|
|
if (f >= 1.0f) {
|
|
return 1.0f;
|
|
}
|
|
if (f <= 0.0f) {
|
|
return 0.0f;
|
|
}
|
|
float[] fArr = this.f3633a;
|
|
int min = Math.min((int) ((fArr.length - 1) * f), fArr.length - 2);
|
|
float f2 = this.f3634b;
|
|
float f3 = (f - (min * f2)) / f2;
|
|
float[] fArr2 = this.f3633a;
|
|
float f4 = fArr2[min];
|
|
return f4 + (f3 * (fArr2[min + 1] - f4));
|
|
}
|
|
} |