| 65 | } |
| 66 | |
| 67 | bool Intersects(const RectangleInt2D &other) const |
| 68 | { |
| 69 | // Standard box intersection test - check if boxes *don't* overlap, |
| 70 | // and return the negative of that |
| 71 | return !(max_lon < other.min_lon || min_lon > other.max_lon || max_lat < other.min_lat || |
| 72 | min_lat > other.max_lat); |
| 73 | } |
| 74 | |
| 75 | // This code assumes that we are operating in euclidean space! |
| 76 | // That means if you just put unprojected lat/lon in here you will |