Changeset 2941 in josm for trunk/src/org/openstreetmap/josm/data/Bounds.java
- Timestamp:
- 05.02.2010 15:37:09 (2 years ago)
- File:
-
- 1 edited
-
trunk/src/org/openstreetmap/josm/data/Bounds.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Bounds.java
r2845 r2941 172 172 return true; 173 173 } 174 175 /** 176 * The two bounds intersect? Compared to java Shape.intersects, if does not use 177 * the interior but the closure. (">=" instead of ">") 178 */ 179 public boolean intersects(Bounds b) { 180 return b.getMax().lat() >= minLat && 181 b.getMax().lon() >= minLon && 182 b.getMin().lat() <= maxLat && 183 b.getMin().lon() <= maxLon; 184 } 185 174 186 175 187 /**
Note: See TracChangeset
for help on using the changeset viewer.
