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

323 lines
12 KiB
Java

package o;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.kofax.mobile.sdk._internal.impl.extraction.rtti.RttiJsonExactionHelper;
import java.util.LinkedHashMap;
import o.Prc;
import o.yqQ;
/* renamed from: o.eYU, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C11094eYU implements Comparable<C11094eYU> {
static String[] a = {"position", "x", "y", RttiJsonExactionHelper.WIDTH, RttiJsonExactionHelper.HEIGHT, "pathRotate"};
public int b;
LinkedHashMap<String, Prc> c;
public float d;
public int e;
public Yrp f;
float g;
int h;
public C15870jKt i;
public int j;
double[] k;
public float l;
public float m;
double[] n;
/* renamed from: o, reason: collision with root package name */
public float f8961o;
private int p;
private float q;
public float r;
public float s;
private float t;
@Override // java.lang.Comparable
public final /* synthetic */ int compareTo(C11094eYU c11094eYU) {
return Float.compare(this.l, c11094eYU.l);
}
public C11094eYU() {
this.b = 0;
this.g = Float.NaN;
this.q = Float.NaN;
this.h = -1;
this.e = -1;
this.t = Float.NaN;
this.i = null;
this.c = new LinkedHashMap<>();
this.j = 0;
this.n = new double[18];
this.k = new double[18];
}
public C11094eYU(int i, int i2, LHE lhe, C11094eYU c11094eYU, C11094eYU c11094eYU2) {
float min;
float f;
this.b = 0;
this.g = Float.NaN;
this.q = Float.NaN;
this.h = -1;
this.e = -1;
this.t = Float.NaN;
this.i = null;
this.c = new LinkedHashMap<>();
this.j = 0;
this.n = new double[18];
this.k = new double[18];
if (c11094eYU.e == -1) {
int i3 = lhe.n;
if (i3 == 1) {
float f2 = lhe.e / 100.0f;
this.m = f2;
this.b = lhe.j;
float f3 = Float.isNaN(lhe.k) ? f2 : lhe.k;
float f4 = Float.isNaN(lhe.f) ? f2 : lhe.f;
float f5 = c11094eYU2.f8961o;
float f6 = c11094eYU.f8961o;
float f7 = c11094eYU2.d;
float f8 = c11094eYU.d;
this.l = this.m;
f2 = Float.isNaN(lhe.f8248o) ? f2 : lhe.f8248o;
float f9 = c11094eYU.s;
float f10 = c11094eYU.f8961o;
float f11 = c11094eYU.r;
float f12 = c11094eYU.d;
float f13 = (c11094eYU2.s + (c11094eYU2.f8961o / 2.0f)) - ((f10 / 2.0f) + f9);
float f14 = (c11094eYU2.r + (c11094eYU2.d / 2.0f)) - ((f12 / 2.0f) + f11);
float f15 = f13 * f2;
float f16 = ((f5 - f6) * f3) / 2.0f;
this.s = (int) ((f9 + f15) - f16);
float f17 = f2 * f14;
float f18 = ((f7 - f8) * f4) / 2.0f;
this.r = (int) ((f11 + f17) - f18);
this.f8961o = (int) (f10 + r7);
this.d = (int) (f12 + r11);
float f19 = Float.isNaN(lhe.m) ? BitmapDescriptorFactory.HUE_RED : lhe.m;
this.j = 1;
float f20 = (int) ((c11094eYU.s + f15) - f16);
this.s = f20;
float f21 = (int) ((c11094eYU.r + f17) - f18);
this.s = f20 + ((-f14) * f19);
this.r = f21 + (f13 * f19);
this.e = this.e;
this.f = Yrp.a(lhe.l);
this.h = lhe.h;
return;
}
if (i3 != 2) {
float f22 = lhe.e / 100.0f;
this.m = f22;
this.b = lhe.j;
float f23 = Float.isNaN(lhe.k) ? f22 : lhe.k;
float f24 = Float.isNaN(lhe.f) ? f22 : lhe.f;
float f25 = c11094eYU2.f8961o;
float f26 = c11094eYU.f8961o;
float f27 = c11094eYU2.d;
float f28 = c11094eYU.d;
this.l = this.m;
float f29 = c11094eYU.s;
float f30 = c11094eYU.r;
float f31 = (c11094eYU2.s + (f25 / 2.0f)) - ((f26 / 2.0f) + f29);
float f32 = (c11094eYU2.r + (f27 / 2.0f)) - (f30 + (f28 / 2.0f));
float f33 = ((f25 - f26) * f23) / 2.0f;
this.s = (int) ((f29 + (f31 * f22)) - f33);
float f34 = ((f27 - f28) * f24) / 2.0f;
this.r = (int) ((f30 + (f32 * f22)) - f34);
this.f8961o = (int) (f26 + r9);
this.d = (int) (f28 + r12);
float f35 = Float.isNaN(lhe.f8248o) ? f22 : lhe.f8248o;
float f36 = Float.isNaN(lhe.i) ? BitmapDescriptorFactory.HUE_RED : lhe.i;
f22 = Float.isNaN(lhe.m) ? f22 : lhe.m;
float f37 = !Float.isNaN(lhe.g) ? lhe.g : BitmapDescriptorFactory.HUE_RED;
this.j = 0;
this.s = (int) (((c11094eYU.s + (f35 * f31)) + (f37 * f32)) - f33);
this.r = (int) (((c11094eYU.r + (f31 * f36)) + (f32 * f22)) - f34);
this.f = Yrp.a(lhe.l);
this.h = lhe.h;
return;
}
float f38 = lhe.e / 100.0f;
this.m = f38;
this.b = lhe.j;
float f39 = Float.isNaN(lhe.k) ? f38 : lhe.k;
float f40 = Float.isNaN(lhe.f) ? f38 : lhe.f;
float f41 = c11094eYU2.f8961o;
float f42 = c11094eYU.f8961o;
float f43 = c11094eYU2.d;
float f44 = c11094eYU.d;
this.l = this.m;
float f45 = c11094eYU.s;
float f46 = c11094eYU.r;
float f47 = c11094eYU2.s;
float f48 = f41 / 2.0f;
float f49 = c11094eYU2.r;
float f50 = f43 / 2.0f;
float f51 = (f41 - f42) * f39;
this.s = (int) ((f45 + (((f47 + f48) - ((f42 / 2.0f) + f45)) * f38)) - (f51 / 2.0f));
float f52 = (f43 - f44) * f40;
this.r = (int) ((f46 + (((f49 + f50) - ((f44 / 2.0f) + f46)) * f38)) - (f52 / 2.0f));
this.f8961o = (int) (f42 + f51);
this.d = (int) (f44 + f52);
this.j = 2;
if (!Float.isNaN(lhe.f8248o)) {
this.s = (int) (lhe.f8248o * ((int) (i - this.f8961o)));
}
if (!Float.isNaN(lhe.m)) {
this.r = (int) (lhe.m * ((int) (i2 - this.d)));
}
this.e = this.e;
this.f = Yrp.a(lhe.l);
this.h = lhe.h;
return;
}
float f53 = lhe.e / 100.0f;
this.m = f53;
this.b = lhe.j;
this.j = lhe.n;
float f54 = Float.isNaN(lhe.k) ? f53 : lhe.k;
float f55 = Float.isNaN(lhe.f) ? f53 : lhe.f;
float f56 = c11094eYU2.f8961o;
float f57 = c11094eYU.f8961o;
float f58 = c11094eYU2.d;
float f59 = c11094eYU.d;
this.l = this.m;
this.f8961o = (int) (f57 + ((f56 - f57) * f54));
this.d = (int) (f59 + ((f58 - f59) * f55));
int i4 = lhe.n;
if (i4 == 1) {
float f60 = Float.isNaN(lhe.f8248o) ? f53 : lhe.f8248o;
float f61 = c11094eYU2.s;
float f62 = c11094eYU.s;
this.s = (f60 * (f61 - f62)) + f62;
f53 = Float.isNaN(lhe.m) ? f53 : lhe.m;
float f63 = c11094eYU2.r;
float f64 = c11094eYU.r;
this.r = (f53 * (f63 - f64)) + f64;
} else if (i4 == 2) {
if (Float.isNaN(lhe.f8248o)) {
float f65 = c11094eYU2.s;
float f66 = c11094eYU.s;
min = ((f65 - f66) * f53) + f66;
} else {
min = Math.min(f55, f54) * lhe.f8248o;
}
this.s = min;
if (Float.isNaN(lhe.m)) {
float f67 = c11094eYU2.r;
float f68 = c11094eYU.r;
f = (f53 * (f67 - f68)) + f68;
} else {
f = lhe.m;
}
this.r = f;
} else {
float f69 = Float.isNaN(lhe.f8248o) ? f53 : lhe.f8248o;
float f70 = c11094eYU2.s;
float f71 = c11094eYU.s;
this.s = (f69 * (f70 - f71)) + f71;
f53 = Float.isNaN(lhe.m) ? f53 : lhe.m;
float f72 = c11094eYU2.r;
float f73 = c11094eYU.r;
this.r = (f53 * (f72 - f73)) + f73;
}
this.e = c11094eYU.e;
this.f = Yrp.a(lhe.l);
this.h = lhe.h;
}
public final void a(C15870jKt c15870jKt, C11094eYU c11094eYU) {
double d = ((this.s + (this.f8961o / 2.0f)) - c11094eYU.s) - (c11094eYU.f8961o / 2.0f);
double d2 = ((this.r + (this.d / 2.0f)) - c11094eYU.r) - (c11094eYU.d / 2.0f);
this.i = c15870jKt;
this.s = (float) Math.hypot(d2, d);
if (Float.isNaN(this.t)) {
this.r = (float) (Math.atan2(d2, d) + 1.5707963267948966d);
} else {
this.r = (float) Math.toRadians(this.t);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean a(float f, float f2) {
return (Float.isNaN(f) || Float.isNaN(f2)) ? Float.isNaN(f) != Float.isNaN(f2) : Math.abs(f - f2) > 1.0E-6f;
}
public final void d(double d, int[] iArr, double[] dArr, float[] fArr, int i) {
float f = this.s;
float f2 = this.r;
float f3 = this.f8961o;
float f4 = this.d;
for (int i2 = 0; i2 < iArr.length; i2++) {
float f5 = (float) dArr[i2];
int i3 = iArr[i2];
if (i3 == 1) {
f = f5;
} else if (i3 == 2) {
f2 = f5;
} else if (i3 == 3) {
f3 = f5;
} else if (i3 == 4) {
f4 = f5;
}
}
C15870jKt c15870jKt = this.i;
if (c15870jKt != null) {
float[] fArr2 = new float[2];
c15870jKt.e(d, fArr2, new float[2]);
float f6 = fArr2[0];
float f7 = fArr2[1];
double d2 = f6;
double d3 = f;
double d4 = f2;
f = (float) ((d2 + (Math.sin(d4) * d3)) - (f3 / 2.0f));
f2 = (float) ((f7 - (d3 * Math.cos(d4))) - (f4 / 2.0f));
}
fArr[i] = f + (f3 / 2.0f) + BitmapDescriptorFactory.HUE_RED;
fArr[i + 1] = f2 + (f4 / 2.0f) + BitmapDescriptorFactory.HUE_RED;
}
public static void c(float f, float f2, float[] fArr, int[] iArr, double[] dArr, double[] dArr2) {
float f3 = 0.0f;
float f4 = 0.0f;
float f5 = 0.0f;
float f6 = 0.0f;
for (int i = 0; i < iArr.length; i++) {
float f7 = (float) dArr[i];
double d = dArr2[i];
int i2 = iArr[i];
if (i2 == 1) {
f3 = f7;
} else if (i2 == 2) {
f5 = f7;
} else if (i2 == 3) {
f4 = f7;
} else if (i2 == 4) {
f6 = f7;
}
}
float f8 = f3 - ((f4 * BitmapDescriptorFactory.HUE_RED) / 2.0f);
float f9 = f5 - ((f6 * BitmapDescriptorFactory.HUE_RED) / 2.0f);
fArr[0] = ((1.0f - f) * f8) + ((f4 + f8) * f) + BitmapDescriptorFactory.HUE_RED;
fArr[1] = ((1.0f - f2) * f9) + ((f6 + f9) * f2) + BitmapDescriptorFactory.HUE_RED;
}
public final void c(yqQ.Sts sts) {
int i;
this.f = Yrp.a(sts.f.n);
this.h = sts.f.i;
this.e = sts.f.e;
this.g = sts.f.j;
this.b = sts.f.d;
this.p = sts.f.b;
this.q = sts.g.e;
this.t = sts.a.i;
for (String str : sts.e.keySet()) {
Prc prc = sts.e.get(str);
if (prc != null && (i = Prc.AnonymousClass1.a[prc.g.ordinal()]) != 1 && i != 2 && i != 3) {
this.c.put(str, prc);
}
}
}
}