Initial version -- added millennium read funcionality

This commit is contained in:
Pablo
2026-03-09 22:05:28 +01:00
commit 77c2ded482
2770 changed files with 141927 additions and 0 deletions
@@ -0,0 +1,40 @@
package com.google.maps.android.geometry;
/* JADX INFO: loaded from: classes2.dex */
public class Bounds {
public final double maxX;
public final double maxY;
public final double midX;
public final double midY;
public final double minX;
public final double minY;
public Bounds(double d, double d2, double d3, double d4) {
this.minX = d;
this.minY = d3;
this.maxX = d2;
this.maxY = d4;
this.midX = (d + d2) / 2.0d;
this.midY = (d3 + d4) / 2.0d;
}
public boolean contains(double d, double d2) {
return this.minX <= d && d <= this.maxX && this.minY <= d2 && d2 <= this.maxY;
}
public boolean contains(Point point) {
return contains(point.x, point.y);
}
public boolean intersects(double d, double d2, double d3, double d4) {
return d < this.maxX && this.minX < d2 && d3 < this.maxY && this.minY < d4;
}
public boolean intersects(Bounds bounds) {
return intersects(bounds.minX, bounds.maxX, bounds.minY, bounds.maxY);
}
public boolean contains(Bounds bounds) {
return bounds.minX >= this.minX && bounds.maxX <= this.maxX && bounds.minY >= this.minY && bounds.maxY <= this.maxY;
}
}