Initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user