Ignore:
Timestamp:
2009-06-26T22:11:40+02:00 (16 years ago)
Author:
jttt
Message:

Use getter for Node.coor and Node.eastNorth

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/SimplifyWayAction.java

    r14121 r16162  
    5555                        boolean isInsideOneBoundingBox = false;
    5656                        for (Bounds b : bounds) {
    57                             if (b.contains(node.coor)) {
     57                            if (b.contains(node.getCoor())) {
    5858                                isInsideOneBoundingBox = true;
    5959                                break;
     
    161161            Node n = wnew.nodes.get(i);
    162162            double xte = Math.abs(EARTH_RAD
    163                     * xtd(fromN.coor.lat() * Math.PI / 180, fromN.coor.lon() * Math.PI / 180, toN.coor.lat() * Math.PI
    164                             / 180, toN.coor.lon() * Math.PI / 180, n.coor.lat() * Math.PI / 180, n.coor.lon() * Math.PI
     163                    * xtd(fromN.getCoor().lat() * Math.PI / 180, fromN.getCoor().lon() * Math.PI / 180, toN.getCoor().lat() * Math.PI
     164                            / 180, toN.getCoor().lon() * Math.PI / 180, n.getCoor().lat() * Math.PI / 180, n.getCoor().lon() * Math.PI
    165165                            / 180));
    166166            if (xte > xtemax) {
Note: See TracChangeset for help on using the changeset viewer.