34 lines
1.0 KiB
Java
34 lines
1.0 KiB
Java
package com.kofax.mobile.sdk.capture.model;
|
|
|
|
import android.graphics.RectF;
|
|
import java.io.Serializable;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class FieldLocation implements Serializable {
|
|
public static final FieldLocation UNDEFINED = new FieldLocation(0.0d, 0.0d, 0.0d, 0.0d);
|
|
public final PointDouble origin;
|
|
public final SizeDouble size;
|
|
|
|
public FieldLocation(double d, double d2, double d3, double d4) {
|
|
this.origin = new PointDouble(d, d2);
|
|
this.size = new SizeDouble(d3, d4);
|
|
}
|
|
|
|
public FieldLocation(RectF rectF) {
|
|
this(rectF.left, rectF.top, rectF.width(), rectF.height());
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder("Location [");
|
|
sb.append(this.origin);
|
|
sb.append(", ");
|
|
sb.append(this.size);
|
|
sb.append("]");
|
|
return sb.toString();
|
|
}
|
|
|
|
public boolean isUndefined() {
|
|
return this.origin.x == 0.0d && this.origin.y == 0.0d && this.size.width == 0.0d && this.size.height == 0.0d;
|
|
}
|
|
}
|