2021-07-24 02:37:17 +00:00
|
|
|
package androidx.core.graphics;
|
|
|
|
|
|
|
|
import android.graphics.Matrix;
|
|
|
|
import d0.z.d.m;
|
|
|
|
/* compiled from: Matrix.kt */
|
|
|
|
public final class MatrixKt {
|
|
|
|
public static final Matrix rotationMatrix(float f, float f2, float f3) {
|
|
|
|
Matrix matrix = new Matrix();
|
|
|
|
matrix.setRotate(f, f2, f3);
|
|
|
|
return matrix;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static /* synthetic */ Matrix rotationMatrix$default(float f, float f2, float f3, int i, Object obj) {
|
|
|
|
if ((i & 2) != 0) {
|
|
|
|
f2 = 0.0f;
|
|
|
|
}
|
|
|
|
if ((i & 4) != 0) {
|
|
|
|
f3 = 0.0f;
|
|
|
|
}
|
|
|
|
return rotationMatrix(f, f2, f3);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final Matrix scaleMatrix(float f, float f2) {
|
|
|
|
Matrix matrix = new Matrix();
|
|
|
|
matrix.setScale(f, f2);
|
|
|
|
return matrix;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static /* synthetic */ Matrix scaleMatrix$default(float f, float f2, int i, Object obj) {
|
|
|
|
if ((i & 1) != 0) {
|
|
|
|
f = 1.0f;
|
|
|
|
}
|
|
|
|
if ((i & 2) != 0) {
|
|
|
|
f2 = 1.0f;
|
|
|
|
}
|
|
|
|
return scaleMatrix(f, f2);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final Matrix times(Matrix matrix, Matrix matrix2) {
|
2021-09-21 07:33:49 +00:00
|
|
|
m.checkNotNullParameter(matrix, "<this>");
|
|
|
|
m.checkNotNullParameter(matrix2, "m");
|
2021-07-24 02:37:17 +00:00
|
|
|
Matrix matrix3 = new Matrix(matrix);
|
|
|
|
matrix3.preConcat(matrix2);
|
|
|
|
return matrix3;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final Matrix translationMatrix(float f, float f2) {
|
|
|
|
Matrix matrix = new Matrix();
|
|
|
|
matrix.setTranslate(f, f2);
|
|
|
|
return matrix;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static /* synthetic */ Matrix translationMatrix$default(float f, float f2, int i, Object obj) {
|
|
|
|
if ((i & 1) != 0) {
|
|
|
|
f = 0.0f;
|
|
|
|
}
|
|
|
|
if ((i & 2) != 0) {
|
|
|
|
f2 = 0.0f;
|
|
|
|
}
|
|
|
|
return translationMatrix(f, f2);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final float[] values(Matrix matrix) {
|
2021-09-21 07:33:49 +00:00
|
|
|
m.checkNotNullParameter(matrix, "<this>");
|
2021-07-24 02:37:17 +00:00
|
|
|
float[] fArr = new float[9];
|
|
|
|
matrix.getValues(fArr);
|
|
|
|
return fArr;
|
|
|
|
}
|
|
|
|
}
|