Changeset 8345 in josm for trunk/src/org/openstreetmap/josm/data/coor
- Timestamp:
- 2015-05-11T10:52:33+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/coor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java
r8308 r8345 132 132 */ 133 133 public boolean equalsEpsilon(EastNorth other, double e) { 134 return (Math.abs(x - other.x) < e && Math.abs(y - other.y) < e);134 return Math.abs(x - other.x) < e && Math.abs(y - other.y) < e; 135 135 } 136 136 } -
trunk/src/org/openstreetmap/josm/data/coor/QuadTiling.java
r7509 r8345 9 9 10 10 public static final int NR_LEVELS = 24; 11 public static final double WORLD_PARTS = (1 << NR_LEVELS);11 public static final double WORLD_PARTS = 1 << NR_LEVELS; 12 12 13 13 public static final int TILES_PER_LEVEL_SHIFT = 2; // Has to be 2. Other parts of QuadBuckets code rely on it … … 53 53 for (i = NR_LEVELS-1; i >= 0; i--) 54 54 { 55 long xbit = ( (x >> i) & 1);56 long ybit = ( (y >> i) & 1);55 long xbit = (x >> i) & 1; 56 long ybit = (y >> i) & 1; 57 57 tile <<= 2; 58 58 // Note that x is the MSB
Note:
See TracChangeset
for help on using the changeset viewer.