/** returns true if the edge (defined by (ax, ay) (bx, by)) intersects the query */ private boolean edgeIntersectsQuery(int ax, int ay, int bx, int by) { if (this.crossesDateline() == true) { return edgeIntersectsBox(ax, ay, bx, by, MIN_LON_ENCODED, this.maxX, this.minY, this.maxY) || edgeIntersectsBox(ax, ay, bx, by, this.minX, MAX_LON_ENCODED, this.minY, this.maxY); } return edgeIntersectsBox(ax, ay, bx, by, this.minX, this.maxX, this.minY, this.maxY); }