Ignore:
Timestamp:
2014-09-07T16:33:52+02:00 (5 years ago)
Author:
stoecker
Message:

remove tabs

Location:
trunk/src/org/openstreetmap/josm/data/coor
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/Coordinate.java

    r6906 r7509  
    4343    /**
    4444     * Returns the euclidean distance from this {@code Coordinate} to a specified {@code Coordinate}.
    45      * 
     45     *
    4646     * @param coor the specified coordinate to be measured against this {@code Coordinate}
    4747     * @return the euclidean distance from this {@code Coordinate} to a specified {@code Coordinate}
     
    5151        return distance(coor.x, coor.y);
    5252    }
    53    
     53
    5454    /**
    5555     * Returns the euclidean distance from this {@code Coordinate} to a specified coordinate.
    56      * 
     56     *
    5757     * @param px the X coordinate of the specified point to be measured against this {@code Coordinate}
    5858     * @param py the Y coordinate of the specified point to be measured against this {@code Coordinate}
     
    6565        return Math.sqrt(dx*dx + dy*dy);
    6666    }
    67    
     67
    6868    /**
    6969     * Returns the square of the euclidean distance from this {@code Coordinate} to a specified {@code Coordinate}.
    70      * 
     70     *
    7171     * @param coor the specified coordinate to be measured against this {@code Coordinate}
    7272     * @return the square of the euclidean distance from this {@code Coordinate} to a specified {@code Coordinate}
     
    7979    /**
    8080     * Returns the square of euclidean distance from this {@code Coordinate} to a specified coordinate.
    81      * 
     81     *
    8282     * @param px the X coordinate of the specified point to be measured against this {@code Coordinate}
    8383     * @param py the Y coordinate of the specified point to be measured against this {@code Coordinate}
     
    9393    /**
    9494     * Converts to single point BBox.
    95      * 
     95     *
    9696     * @return single point BBox defined by this coordinate.
    9797     * @since 6203
     
    100100        return new BBox(x, y);
    101101    }
    102    
     102
    103103    /**
    104104     * Creates bbox around this coordinate. Coordinate defines
    105105     * center of bbox, its edge will be 2*r.
    106      * 
     106     *
    107107     * @param r size
    108108     * @return BBox around this coordinate
  • trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java

    r6670 r7509  
    4646    /**
    4747     * Returns the euclidean distance from this {@code EastNorth} to a specified {@code EastNorth}.
    48      * 
     48     *
    4949     * @param en the specified coordinate to be measured against this {@code EastNorth}
    5050     * @return the euclidean distance from this {@code EastNorth} to a specified {@code EastNorth}
     
    5757    /**
    5858     * Returns the square of the euclidean distance from this {@code EastNorth} to a specified {@code EastNorth}.
    59      * 
     59     *
    6060     * @param en the specified coordinate to be measured against this {@code EastNorth}
    6161     * @return the square of the euclidean distance from this {@code EastNorth} to a specified {@code EastNorth}
     
    6868    /**
    6969     * Counts length (distance from [0,0]) of this.
    70      * 
     70     *
    7171     * @return length of this
    7272     */
  • trunk/src/org/openstreetmap/josm/data/coor/QuadTiling.java

    r6380 r7509  
    33
    44public final class QuadTiling {
    5    
     5
    66    private QuadTiling() {
    77        // Hide default constructor for utils classes
    88    }
    9    
     9
    1010    public static final int NR_LEVELS = 24;
    1111    public static final double WORLD_PARTS = (1 << NR_LEVELS);
     
    4747        return new LatLon(y, x);
    4848    }
    49    
     49
    5050    static long xy2tile(long x, long y) {
    5151        long tile = 0;
     
    6161        return tile;
    6262    }
    63    
     63
    6464    static long coorToTile(LatLon coor) {
    6565        return quadTile(coor);
    6666    }
    67    
     67
    6868    static long lon2x(double lon) {
    6969        long ret = (long)((lon + 180.0) * WORLD_PARTS / 360.0);
     
    7373        return ret;
    7474    }
    75    
     75
    7676    static long lat2y(double lat) {
    7777        long ret = (long)((lat + 90.0) * WORLD_PARTS / 180.0);
     
    8181        return ret;
    8282    }
    83    
     83
    8484    public static long quadTile(LatLon coor) {
    8585        return xy2tile(lon2x(coor.lon()), lat2y(coor.lat()));
    8686    }
    87    
     87
    8888    public static int index(int level, long quad) {
    8989        long mask = 0x00000003;
     
    9191        return (int)(mask & (quad >> total_shift));
    9292    }
    93    
     93
    9494    /**
    9595     * Returns quad tiling index for given coordinates and level.
     
    102102     */
    103103    public static int index(LatLon coor, int level) {
    104         // The nodes that don't return coordinates will all get stuck in a single tile. 
     104        // The nodes that don't return coordinates will all get stuck in a single tile.
    105105        // Hopefully there are not too many of them
    106106        if (coor == null)
Note: See TracChangeset for help on using the changeset viewer.