Initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package com.google.android.material.animation;
|
||||
|
||||
import android.animation.TypeEvaluator;
|
||||
import android.graphics.Matrix;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class MatrixEvaluator implements TypeEvaluator<Matrix> {
|
||||
private final float[] a = new float[9];
|
||||
private final float[] b = new float[9];
|
||||
private final Matrix c = new Matrix();
|
||||
|
||||
@Override // android.animation.TypeEvaluator
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public Matrix evaluate(float f, Matrix matrix, Matrix matrix2) {
|
||||
matrix.getValues(this.a);
|
||||
matrix2.getValues(this.b);
|
||||
for (int i = 0; i < 9; i++) {
|
||||
float[] fArr = this.b;
|
||||
float f2 = fArr[i];
|
||||
float[] fArr2 = this.a;
|
||||
fArr[i] = fArr2[i] + ((f2 - fArr2[i]) * f);
|
||||
}
|
||||
this.c.setValues(this.b);
|
||||
return this.c;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user