Ignore:
Timestamp:
2006-09-24T11:15:39+02:00 (19 years ago)
Author:
imi
Message:
  • added External Tool support (no gui configuration yet)
  • applied patch for bug that Save action does not set filename (thanks Dean)
  • fixed case sensitiveness of search tool (now insensitive, like google)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/data/coor/LatLon.java

    r86 r142  
    11package org.openstreetmap.josm.data.coor;
    22
     3import org.openstreetmap.josm.data.Bounds;
    34import org.openstreetmap.josm.data.projection.Projection;
    45
     
    4243        }
    4344
     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       
    4452    @Override public String toString() {
    4553        return "LatLon[lat="+lat()+",lon="+lon()+"]";
Note: See TracChangeset for help on using the changeset viewer.