Ignore:
Timestamp:
2017-05-15T15:57:36+02:00 (8 years ago)
Author:
michael2402
Message:

Make use of ILatLon#getEastNorth

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/OffsetBookmark.java

    r12139 r12163  
    118118        LatLon center = getCenter();
    119119        Projection offsetProj = Projections.getProjectionByCode(projection_code);
    120         EastNorth centerEN = offsetProj.latlon2eastNorth(center);
     120        EastNorth centerEN = center.getEastNorth(offsetProj);
    121121        EastNorth shiftedEN = centerEN.add(getDisplacement());
    122122        LatLon shifted = offsetProj.eastNorth2latlon(shiftedEN);
    123         EastNorth centerEN2 = proj.latlon2eastNorth(center);
    124         EastNorth shiftedEN2 = proj.latlon2eastNorth(shifted);
     123        EastNorth centerEN2 = center.getEastNorth(proj);
     124        EastNorth shiftedEN2 = shifted.getEastNorth(proj);
    125125        return shiftedEN2.subtract(centerEN2);
    126126    }
Note: See TracChangeset for help on using the changeset viewer.