jimu-decompiled/sources/com/google/zxing/qrcode/detector/FinderPattern.java
2025-05-13 19:24:51 +02:00

44 lines
1.0 KiB
Java

package com.google.zxing.qrcode.detector;
import com.google.zxing.ResultPoint;
/* loaded from: classes.dex */
public final class FinderPattern extends ResultPoint {
private final float c;
private final int d;
FinderPattern(float f, float f2, float f3) {
this(f, f2, f3, 1);
}
boolean a(float f, float f2, float f3) {
if (Math.abs(f2 - b()) > f || Math.abs(f3 - a()) > f) {
return false;
}
float abs = Math.abs(f - this.c);
return abs <= 1.0f || abs <= this.c;
}
FinderPattern b(float f, float f2, float f3) {
int i = this.d;
int i2 = i + 1;
float a = (i * a()) + f2;
float f4 = i2;
return new FinderPattern(a / f4, ((this.d * b()) + f) / f4, ((this.d * this.c) + f3) / f4, i2);
}
int c() {
return this.d;
}
public float d() {
return this.c;
}
private FinderPattern(float f, float f2, float f3, int i) {
super(f, f2);
this.c = f3;
this.d = i;
}
}