Changeset 2327 in josm for trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
- Timestamp:
- 27.10.2009 01:21:32 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r2174 r2327 90 90 public boolean isOutSideWorld() { 91 91 Bounds b = Main.proj.getWorldBoundsLatLon(); 92 return lat() < b. min.lat() || lat() > b.max.lat() ||93 lon() < b. min.lon() || lon() > b.max.lon();92 return lat() < b.getMin().lat() || lat() > b.getMax().lat() || 93 lon() < b.getMin().lon() || lon() > b.getMax().lon(); 94 94 } 95 95 … … 98 98 */ 99 99 public boolean isWithin(Bounds b) { 100 return lat() >= b. min.lat() && lat() <= b.max.lat() && lon() > b.min.lon() && lon() < b.max.lon();100 return lat() >= b.getMin().lat() && lat() <= b.getMax().lat() && lon() > b.getMin().lon() && lon() < b.getMax().lon(); 101 101 } 102 102
Note: See TracChangeset
for help on using the changeset viewer.
