@Test public void testIntersects() { BoundingBox bbox = new BoundingBox(10, -10, 41, 40); assertIntersects(bbox, new BoundingBox(5, -15, 40.5, 43)); assertDoesNotIntersect(bbox, new BoundingBox(5, -15, 42, 43)); }
public boolean intersects(BoundingBox other) { return !(other.minLon > maxLon || other.maxLon < minLon || other.minLat > maxLat || other.maxLat < minLat); }
BoundingBox implements Serializable { public boolean intersects(BoundingBox other) { return !(other.minLon > maxLon || other.maxLon < minLon || other.minLat > maxLat || other.maxLat < minLat); } }
BoundingBox implements Serializable { public boolean intersects(BoundingBox other) { return !(other.minLon > maxLon || other.maxLon < minLon || other.minLat > maxLat || other.maxLat < minLat); } BoundingBox(WGS84Point p1, WGS84Point p2);  BoundingBox(double y1, double y2, double x1, double x2);  BoundingBox(BoundingBox that); }
BoundingBox implements Serializable { public boolean intersects(BoundingBox other) { return !(other.minLon > maxLon || other.maxLon < minLon || other.minLat > maxLat || other.maxLat < minLat); } BoundingBox(WGS84Point p1, WGS84Point p2);  BoundingBox(double y1, double y2, double x1, double x2);  BoundingBox(BoundingBox that); WGS84Point getUpperLeft(); WGS84Point getLowerRight(); double getLatitudeSize(); double getLongitudeSize(); @Override boolean equals(Object obj); @Override int hashCode(); boolean contains(WGS84Point point); boolean intersects(BoundingBox other); @Override String toString(); WGS84Point getCenterPoint(); void expandToInclude(BoundingBox other); double getMinLon(); double getMinLat(); double getMaxLat(); double getMaxLon(); }
BoundingBox implements Serializable { public boolean intersects(BoundingBox other) { return !(other.minLon > maxLon || other.maxLon < minLon || other.minLat > maxLat || other.maxLat < minLat); } BoundingBox(WGS84Point p1, WGS84Point p2);  BoundingBox(double y1, double y2, double x1, double x2);  BoundingBox(BoundingBox that); WGS84Point getUpperLeft(); WGS84Point getLowerRight(); double getLatitudeSize(); double getLongitudeSize(); @Override boolean equals(Object obj); @Override int hashCode(); boolean contains(WGS84Point point); boolean intersects(BoundingBox other); @Override String toString(); WGS84Point getCenterPoint(); void expandToInclude(BoundingBox other); double getMinLon(); double getMinLat(); double getMaxLat(); double getMaxLon();  }