Ignore:
Timestamp:
2016-07-04T14:18:17+02:00 (8 years ago)
Author:
donvip
Message:

checkstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/SimplifyWay.java

    r30737 r32556  
    1 // License: GPL. v2 and later. Copyright 2008-2009 by Pieren <pieren3@gmail.com> and others
     1// License: GPL. For details, see LICENSE file.
    22package cadastre_fr;
    33
     
    1010/**
    1111 * Imported from plugin UtilsPlugin
    12  * @author 
     12 * @author
    1313 *
    1414 */
     
    2626            simplifyWayRange(wnew, from, to, ns, thr);
    2727            List<Node> nodes = wnew.getNodes();
    28             for (int j = to - 1; j > from; j--)
     28            for (int j = to - 1; j > from; j--) {
    2929                nodes.remove(j);
     30            }
    3031            nodes.addAll(from+1, ns);
    3132            wnew.setNodes(nodes);
    3233        }
    3334    }
    34    
     35
    3536    /*
    3637     * Takes an interval [from,to] and adds nodes from (from,to) to ns.
     
    6061        }
    6162    }
     63
    6264    public static double EARTH_RAD = 6378137.0;
     65
    6366    /* From Aviaton Formulary v1.3
    6467     * http://williams.best.vwh.net/avform.htm
     
    7477                % (2 * Math.PI);
    7578    }
     79
    7680    public static double xtd(double lat1, double lon1, double lat2, double lon2, double lat3, double lon3) {
    7781        double dist_AD = dist(lat1, lon1, lat3, lon3);
     
    8084        return Math.asin(Math.sin(dist_AD) * Math.sin(crs_AD - crs_AB));
    8185    }
    82 
    8386}
Note: See TracChangeset for help on using the changeset viewer.