Changeset 142 in josm for src/org/openstreetmap/josm/data/coor
- Timestamp:
- 2006-09-24T11:15:39+02:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/data/coor/LatLon.java
r86 r142 1 1 package org.openstreetmap.josm.data.coor; 2 2 3 import org.openstreetmap.josm.data.Bounds; 3 4 import org.openstreetmap.josm.data.projection.Projection; 4 5 … … 42 43 } 43 44 45 /** 46 * @return <code>true</code> if this is within the given bounding box. 47 */ 48 public boolean isWithin(Bounds b) { 49 return lat() >= b.min.lat() && lat() <= b.max.lat() && lon() > b.min.lon() && lon() < b.max.lon(); 50 } 51 44 52 @Override public String toString() { 45 53 return "LatLon[lat="+lat()+",lon="+lon()+"]";
Note:
See TracChangeset
for help on using the changeset viewer.