Ignore:
Timestamp:
2015-06-02T16:41:37+02:00 (4 years ago)
Author:
Don-vip
Message:

remove extra whitespaces

Location:
trunk/src/org/openstreetmap/josm/data/projection/proj
Files:
4 edited

Legend:

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

    r8346 r8444  
    153153    public double[] project(double phi, double lambda) {
    154154        double sinphi = sin(phi);
    155         double L = (0.5*log((1+sinphi)/(1-sinphi))) - e/2*log((1+e*sinphi)/(1-e*sinphi));
    156         double r = f*exp(-n*L);
     155        double l = (0.5*log((1+sinphi)/(1-sinphi))) - e/2*log((1+e*sinphi)/(1-e*sinphi));
     156        double r = f*exp(-n*l);
    157157        double gamma = n*lambda;
    158         double X = r*sin(gamma);
    159         double Y = r0 - r*cos(gamma);
    160         return new double[] { X, Y };
     158        double x = r*sin(gamma);
     159        double y = r0 - r*cos(gamma);
     160        return new double[] {x, y};
    161161    }
    162162
     
    168168        double latIso = (-1/n) * log(abs(r/f));
    169169        double phi = ellps.latitude(latIso, e, epsilon);
    170         return new double[] { phi, lambda };
     170        return new double[] {phi, lambda};
    171171    }
    172172
  • trunk/src/org/openstreetmap/josm/data/projection/proj/LonLat.java

    r7937 r8444  
    3030    @Override
    3131    public double[] project(double lat_rad, double lon_rad) {
    32         return new double[] { Math.toDegrees(lon_rad) / a, Math.toDegrees(lat_rad) / a };
     32        return new double[] {Math.toDegrees(lon_rad) / a, Math.toDegrees(lat_rad) / a};
    3333    }
    3434
    3535    @Override
    3636    public double[] invproject(double east, double north) {
    37         return new double[] { Math.toRadians(north * a), Math.toRadians(east * a) };
     37        return new double[] {Math.toRadians(north * a), Math.toRadians(east * a)};
    3838    }
    3939}
  • trunk/src/org/openstreetmap/josm/data/projection/proj/Mercator.java

    r6362 r8444  
    3232    @Override
    3333    public double[] project(double lat_rad, double lon_rad) {
    34         return new double[] { lon_rad, log(tan(PI/4 + lat_rad/2)) };
     34        return new double[] {lon_rad, log(tan(PI/4 + lat_rad/2))};
    3535    }
    3636
    3737    @Override
    3838    public double[] invproject(double east, double north) {
    39         return new double[] { atan(sinh(north)), east };
     39        return new double[] {atan(sinh(north)), east};
    4040    }
    41 
    4241}
  • trunk/src/org/openstreetmap/josm/data/projection/proj/SwissObliqueMercator.java

    r8378 r8444  
    8181        double x = kR / 2 * log((1 + sin(bb)) / (1 - sin(bb)));
    8282
    83         return new double[] { y, x };
     83        return new double[] {y, x};
    8484    }
    8585
     
    107107            phi = 2 * atan(exp(s)) - PI / 2;
    108108        }
    109         return new double[] { phi, lambda };
     109        return new double[] {phi, lambda};
    110110    }
    111111}
Note: See TracChangeset for help on using the changeset viewer.