Changeset 13140 in josm
 Timestamp:
 20171121T00:57:05+01:00 (4 weeks ago)
 Location:
 trunk/src/org/openstreetmap/josm/data
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/org/openstreetmap/josm/data/coor/Coordinate.java
r13107 r13140 99 99 * @return BBox around this coordinate 100 100 * @since 6203 101 * @deprecated no longer supported101 * @deprecated use {@link BBox#BBox(double, double, double)} instead 102 102 */ 103 103 @Deprecated 104 104 public BBox toBBox(final double r) { 105 return new BBox(x  r, y  r, x + r, y +r);105 return new BBox(x, y, r); 106 106 } 107 107 
trunk/src/org/openstreetmap/josm/data/osm/BBox.java
r12190 r13140 66 66 67 67 /** 68 * Create minimal BBox so that {@code this.bounds(ax,ay)} and {@code this.bounds(bx,by)} will both return true 68 * Creates bbox around the coordinate (x, y). 69 * Coordinate defines center of bbox, its edge will be 2*r. 70 * 71 * @param x X coordinate 72 * @param y Y coordinate 73 * @param r size 74 * @since 13140 75 */ 76 public BBox(double x, double y, double r) { 77 this(x  r, y  r, x + r, y + r); 78 } 79 80 /** 81 * Create minimal BBox so that {@code this.bounds(ax,ay)} and {@code this.bounds(bx,by)} will both return true 69 82 * @param ax left or right X value (180 .. 180) 70 83 * @param ay top or bottom Y value (90 .. 90)
Note: See TracChangeset
for help on using the changeset viewer.