Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (9 years ago)
Author:
Don-vip
Message:

checkstyle: enable relevant whitespace checks and fix them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/Ellipsoid.java

    r8451 r8510  
    2929     */
    3030    public static final Ellipsoid AustSA = Ellipsoid.create_a_rf(6378160.0, 298.25);
    31    
     31
    3232    /**
    3333     * Bessel 1841 ellipsoid
    3434     */
    3535    public static final Ellipsoid Bessel1841 = Ellipsoid.create_a_rf(6377397.155, 299.1528128);
    36    
     36
    3737    /**
    3838     * Clarke 1866 ellipsoid
     
    251251        double v1 = 1-e*Math.sin(phi);
    252252        double v2 = 1+e*Math.sin(phi);
    253         return Math.log(Math.tan(Math.PI/4+phi/2)*Math.pow(v1/v2,e/2));
     253        return Math.log(Math.tan(Math.PI/4+phi/2)*Math.pow(v1/v2, e/2));
    254254    }
    255255
     
    262262        double v1 = 1-e*Math.sin(phi);
    263263        double v2 = 1+e*Math.sin(phi);
    264         return Math.log(Math.tan(Math.PI/4+phi/2)*Math.pow(v1/v2,e/2));
     264        return Math.log(Math.tan(Math.PI/4+phi/2)*Math.pow(v1/v2, e/2));
    265265    }
    266266
     
    275275        double lati = lat0;
    276276        double lati1 = 1.0; // random value to start the iterative processus
    277         while(Math.abs(lati1-lati)>=epsilon) {
     277        while (Math.abs(lati1-lati) >= epsilon) {
    278278            lati = lati1;
    279279            double v1 = 1+e*Math.sin(lati);
    280280            double v2 = 1-e*Math.sin(lati);
    281             lati1 = 2*Math.atan(Math.pow(v1/v2,e/2)*Math.exp(latIso))-Math.PI/2;
     281            lati1 = 2*Math.atan(Math.pow(v1/v2, e/2)*Math.exp(latIso))-Math.PI/2;
    282282        }
    283283        return lati1;
Note: See TracChangeset for help on using the changeset viewer.