what-the-bank/sources/o/fMG.java

40 lines
1.2 KiB
Java

package o;
import android.graphics.Camera;
import android.graphics.Matrix;
import android.view.animation.Animation;
import android.view.animation.Transformation;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
/* loaded from: classes5.dex */
public final class fMG extends Animation {
private final float a;
private final float b;
private float c;
private final float d;
private float e;
@Override // android.view.animation.Animation
public final void initialize(int i, int i2, int i3, int i4) {
super.initialize(i, i2, i3, i4);
this.e = i * 0.5f;
this.c = i2 * 0.5f;
}
@Override // android.view.animation.Animation
protected final void applyTransformation(float f, Transformation transformation) {
C14957gcv.e(transformation, "");
Matrix matrix = transformation.getMatrix();
Camera camera = new Camera();
camera.save();
float f2 = f * BitmapDescriptorFactory.HUE_RED;
camera.rotateX(f2);
camera.rotateY(f2);
camera.rotateZ(f2);
camera.getMatrix(matrix);
camera.restore();
matrix.preTranslate(-this.e, -this.c);
matrix.postTranslate(this.e, this.c);
}
}