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

26 lines
697 B
Java

package com.google.zxing.qrcode.detector;
import com.google.zxing.ResultPoint;
/* loaded from: classes.dex */
public final class AlignmentPattern extends ResultPoint {
private final float c;
AlignmentPattern(float f, float f2, float f3) {
super(f, f2);
this.c = f3;
}
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;
}
AlignmentPattern b(float f, float f2, float f3) {
return new AlignmentPattern((a() + f2) / 2.0f, (b() + f) / 2.0f, (this.c + f3) / 2.0f);
}
}