Ignore:
Timestamp:
2015-07-01T19:51:35+02:00 (5 years ago)
Author:
bastiK
Message:

applied #11628 - Added documentation to EastNorth, changed x - y = y.sub(x) to x.subtract(y) and minor code style improvements. (patch by michael2402, partially applied)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java

    r8540 r8549  
    474474                    // nothing here
    475475                } else if (mode == Mode.translate) {
    476                     EastNorth movement1 = initialN1en.sub(newN1en);
    477                     EastNorth movement2 = initialN2en.sub(newN2en);
     476                    EastNorth movement1 = newN1en.subtract(initialN1en);
     477                    EastNorth movement2 = newN2en.subtract(initialN2en);
    478478                    // move nodes to new position
    479479                    if (moveCommand == null || moveCommand2 == null) {
     
    734734
    735735        EastNorth initialMouseEn = Main.map.mapView.getEastNorth(initialMousePos.x, initialMousePos.y);
    736         EastNorth mouseMovement = initialMouseEn.sub(mouseEn);
     736        EastNorth mouseMovement = mouseEn.subtract(initialMouseEn);
    737737
    738738        double bestDistance = Double.POSITIVE_INFINITY;
     
    782782        else
    783783            //return distance form base to target position
    784             return intersectionPoint.sub(targetPos);
     784            return targetPos.subtract(intersectionPoint);
    785785    }
    786786
Note: See TracChangeset for help on using the changeset viewer.