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

81 lines
2.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
/* loaded from: classes2.dex */
public final class vXU extends C10853eQp implements Cloneable {
public float a = -1.0f;
public float b;
public float c;
public float d;
public float e;
public float i;
public vXU(float f, float f2, float f3) {
this.e = f;
this.i = f2;
if (f3 >= BitmapDescriptorFactory.HUE_RED) {
this.c = f3;
this.d = BitmapDescriptorFactory.HUE_RED;
return;
}
throw new IllegalArgumentException("cradleVerticalOffset must be positive.");
}
@Override // o.C10853eQp
public final void c(float f, float f2, float f3, LbZ lbZ) {
float f4;
float f5;
float f6 = this.b;
if (f6 == BitmapDescriptorFactory.HUE_RED) {
lbZ.e(f, BitmapDescriptorFactory.HUE_RED);
return;
}
float f7 = ((this.e * 2.0f) + f6) / 2.0f;
float f8 = f3 * this.i;
float f9 = f2 + this.d;
float f10 = (this.c * f3) + ((1.0f - f3) * f7);
if (f10 / f7 >= 1.0f) {
lbZ.e(f, BitmapDescriptorFactory.HUE_RED);
return;
}
float f11 = this.a;
float f12 = f11 * f3;
boolean z = f11 == -1.0f || Math.abs((f11 * 2.0f) - f6) < 0.1f;
if (z) {
f4 = f10;
f5 = 0.0f;
} else {
f5 = 1.75f;
f4 = 0.0f;
}
float f13 = f7 + f8;
float f14 = f4 + f8;
float sqrt = (float) Math.sqrt((f13 * f13) - (f14 * f14));
float f15 = f9 - sqrt;
float f16 = f9 + sqrt;
float degrees = (float) Math.toDegrees(Math.atan(sqrt / f14));
float f17 = (90.0f - degrees) + f5;
lbZ.e(f15, BitmapDescriptorFactory.HUE_RED);
float f18 = f8 * 2.0f;
lbZ.c(f15 - f8, BitmapDescriptorFactory.HUE_RED, f15 + f8, f18, 270.0f, degrees);
if (z) {
lbZ.c(f9 - f7, (-f7) - f4, f9 + f7, f7 - f4, 180.0f - f17, (f17 * 2.0f) - 180.0f);
} else {
float f19 = this.e;
float f20 = f12 * 2.0f;
float f21 = f9 - f7;
float f22 = f12 + f19;
lbZ.c(f21, -f22, f21 + f19 + f20, f22, 180.0f - f17, ((f17 * 2.0f) - 180.0f) / 2.0f);
float f23 = f9 + f7;
float f24 = this.e;
lbZ.e(f23 - ((f24 / 2.0f) + f12), f24 + f12);
float f25 = this.e;
float f26 = f12 + f25;
lbZ.c(f23 - (f20 + f25), -f26, f23, f26, 90.0f, f17 - 90.0f);
}
lbZ.c(f16 - f8, BitmapDescriptorFactory.HUE_RED, f16 + f8, f18, 270.0f - degrees, degrees);
lbZ.e(f, BitmapDescriptorFactory.HUE_RED);
}
}