34 lines
990 B
Java
34 lines
990 B
Java
package o;
|
|
|
|
import android.view.animation.Interpolator;
|
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
|
|
|
/* loaded from: classes.dex */
|
|
abstract class JTl implements Interpolator {
|
|
private final float c;
|
|
private final float[] d;
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public JTl(float[] fArr) {
|
|
this.d = fArr;
|
|
this.c = 1.0f / (fArr.length - 1);
|
|
}
|
|
|
|
@Override // android.animation.TimeInterpolator
|
|
public float getInterpolation(float f) {
|
|
if (f >= 1.0f) {
|
|
return 1.0f;
|
|
}
|
|
if (f <= BitmapDescriptorFactory.HUE_RED) {
|
|
return BitmapDescriptorFactory.HUE_RED;
|
|
}
|
|
float[] fArr = this.d;
|
|
int min = Math.min((int) ((fArr.length - 1) * f), fArr.length - 2);
|
|
float f2 = this.c;
|
|
float f3 = (f - (min * f2)) / f2;
|
|
float[] fArr2 = this.d;
|
|
float f4 = fArr2[min];
|
|
return f4 + (f3 * (fArr2[min + 1] - f4));
|
|
}
|
|
}
|