Rabbit-R1/original r1/java/sources/androidx/transition/FloatArrayEvaluator.java
2024-05-21 17:08:36 -04:00

26 lines
753 B
Java

package androidx.transition;
import android.animation.TypeEvaluator;
/* loaded from: classes2.dex */
class FloatArrayEvaluator implements TypeEvaluator<float[]> {
private float[] mArray;
/* JADX INFO: Access modifiers changed from: package-private */
public FloatArrayEvaluator(float[] fArr) {
this.mArray = fArr;
}
@Override // android.animation.TypeEvaluator
public float[] evaluate(float f, float[] fArr, float[] fArr2) {
float[] fArr3 = this.mArray;
if (fArr3 == null) {
fArr3 = new float[fArr.length];
}
for (int i = 0; i < fArr3.length; i++) {
float f2 = fArr[i];
fArr3[i] = f2 + ((fArr2[i] - f2) * f);
}
return fArr3;
}
}