101 lines
2.9 KiB
Java
101 lines
2.9 KiB
Java
package o;
|
|
|
|
import android.graphics.Paint;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class YQn extends JGO {
|
|
protected Paint a;
|
|
protected Paint b;
|
|
protected AbstractC16220mRf c;
|
|
protected Bun d;
|
|
private Paint e;
|
|
private Paint i;
|
|
|
|
public YQn(DRH drh, AbstractC16220mRf abstractC16220mRf) {
|
|
super(drh);
|
|
this.d = null;
|
|
this.c = abstractC16220mRf;
|
|
if (this.k != null) {
|
|
this.b = new Paint(1);
|
|
Paint paint = new Paint();
|
|
this.i = paint;
|
|
paint.setColor(-7829368);
|
|
this.i.setStrokeWidth(1.0f);
|
|
this.i.setStyle(Paint.Style.STROKE);
|
|
this.i.setAlpha(90);
|
|
Paint paint2 = new Paint();
|
|
this.e = paint2;
|
|
paint2.setColor(-16777216);
|
|
this.e.setStrokeWidth(1.0f);
|
|
this.e.setStyle(Paint.Style.STROKE);
|
|
Paint paint3 = new Paint(1);
|
|
this.a = paint3;
|
|
paint3.setStyle(Paint.Style.STROKE);
|
|
}
|
|
}
|
|
|
|
public void c(float f, float f2) {
|
|
if (this.k != null && this.k.b.width() > 10.0f) {
|
|
DRH drh = this.k;
|
|
float f3 = drh.g;
|
|
float f4 = drh.d;
|
|
if (f3 > f4 || f4 > 1.0f) {
|
|
float f5 = this.k.b.left;
|
|
float f6 = this.k.b.top;
|
|
C16382npz.d();
|
|
Bun bun = null;
|
|
float[] fArr = bun.b;
|
|
throw null;
|
|
}
|
|
}
|
|
a(f, f2);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public void a(float f, float f2) {
|
|
int i;
|
|
int i2 = this.c.p;
|
|
double abs = Math.abs(f2 - f);
|
|
if (i2 == 0 || abs <= 0.0d || Double.isInfinite(abs)) {
|
|
this.c.m = new float[0];
|
|
this.c.e = new float[0];
|
|
this.c.l = 0;
|
|
return;
|
|
}
|
|
double a = AbstractC0810PWv.a(abs / i2);
|
|
boolean z = this.c.f9214o;
|
|
double a2 = AbstractC0810PWv.a(Math.pow(10.0d, (int) Math.log10(a)));
|
|
if (((int) (a / a2)) > 5) {
|
|
a = Math.floor(a2 * 10.0d);
|
|
}
|
|
boolean z2 = this.c.b;
|
|
boolean z3 = this.c.n;
|
|
double ceil = a == 0.0d ? 0.0d : Math.ceil(f / a) * a;
|
|
double b = a == 0.0d ? 0.0d : AbstractC0810PWv.b(Math.floor(f2 / a) * a);
|
|
if (a != 0.0d) {
|
|
i = 0;
|
|
for (double d = ceil; d <= b; d += a) {
|
|
i++;
|
|
}
|
|
} else {
|
|
i = 0;
|
|
}
|
|
this.c.l = i;
|
|
if (this.c.m.length < i) {
|
|
this.c.m = new float[i];
|
|
}
|
|
for (int i3 = 0; i3 < i; i3++) {
|
|
if (ceil == 0.0d) {
|
|
ceil = 0.0d;
|
|
}
|
|
this.c.m[i3] = (float) ceil;
|
|
ceil += a;
|
|
}
|
|
if (a < 1.0d) {
|
|
this.c.i = (int) Math.ceil(-Math.log10(a));
|
|
} else {
|
|
this.c.i = 0;
|
|
}
|
|
}
|
|
}
|