Changeset 18341 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2021-12-20T17:10:59+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/Shape.java
r17727 r18341 86 86 } 87 87 88 /** 89 * Check if the coordinates are inside this shape. 90 * @see Polygon#contains(int, int) 91 * @param latlon The latlon to look for 92 * @return {@code true} if the LatLon is inside the shape. 93 */ 88 94 public boolean contains(LatLon latlon) { 89 95 return coords.contains( … … 115 121 116 122 coords.addPoint( 117 (int) (lon * LatLon.MAX_SERVER_INV_PRECISION), 118 (int) (lat * LatLon.MAX_SERVER_INV_PRECISION)); 123 (int) Math.round((lon * LatLon.MAX_SERVER_INV_PRECISION)), 124 (int) Math.round((lat * LatLon.MAX_SERVER_INV_PRECISION))); 119 125 } 120 126
Note:
See TracChangeset
for help on using the changeset viewer.
