Changeset 11937 in josm for trunk/src/org/openstreetmap/josm/gui/layer/imagery/ReprojectionTile.java
- Timestamp:
- 2017-04-16T21:13:42+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/imagery/ReprojectionTile.java
r11897 r11937 167 167 168 168 // add margin and align to pixel grid 169 private ProjectionBounds pbMarginAndAlign(ProjectionBounds box, double scale, double margin) {169 private static ProjectionBounds pbMarginAndAlign(ProjectionBounds box, double scale, double margin) { 170 170 double minEast = Math.floor(box.minEast / scale - margin) * scale; 171 171 double minNorth = -Math.floor(-(box.minNorth / scale - margin)) * scale; … … 176 176 177 177 // dimension in pixel 178 private Dimension getDimension(ProjectionBounds bounds, double scale) {178 private static Dimension getDimension(ProjectionBounds bounds, double scale) { 179 179 return new Dimension( 180 180 (int) Math.round((bounds.maxEast - bounds.minEast) / scale),
Note:
See TracChangeset
for help on using the changeset viewer.