Changeset 12669 in josm for trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
- Timestamp:
- 2017-08-27T00:17:49+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r12620 r12669 23 23 import java.util.regex.Pattern; 24 24 25 import org.openstreetmap.gui.jmapviewer.interfaces.ICoordinate;26 25 import org.openstreetmap.josm.Main; 27 26 import org.openstreetmap.josm.data.Bounds; … … 294 293 } 295 294 296 /**297 * Constructs a new object for the given coordinate298 * @param coor the coordinate299 */300 public LatLon(ICoordinate coor) {301 this(coor.getLat(), coor.getLon());302 }303 304 295 @Override 305 296 public double lat() { … … 566 557 return Double.compare(that.x, x) == 0 && 567 558 Double.compare(that.y, y) == 0; 568 }569 570 /**571 * Converts this latitude/longitude to an instance of {@link ICoordinate}.572 * @return a {@link ICoordinate} instance of this latitude/longitude573 */574 public ICoordinate toCoordinate() {575 return new org.openstreetmap.gui.jmapviewer.Coordinate(lat(), lon());576 559 } 577 560
Note:
See TracChangeset
for help on using the changeset viewer.