Ignore:
Timestamp:
2022-06-15T19:27:05+02:00 (2 years ago)
Author:
taylor.smock
Message:

Fix #22115: Extract methods from LatLon into ILatLon where they are generally applicable

This also removes calls to Node#getCoor where possible, which reduces
the number of memory allocations in SearchCompiler#match, and overall
allocations due to Node#getCoor

File:
1 edited

Legend:

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

    r16643 r18494  
    1919import org.openstreetmap.josm.data.ProjectionBounds;
    2020import org.openstreetmap.josm.data.coor.EastNorth;
     21import org.openstreetmap.josm.data.coor.ILatLon;
    2122import org.openstreetmap.josm.data.coor.LatLon;
    2223import org.openstreetmap.josm.data.coor.conversion.LatLonParser;
     
    808809                        // project back and check if the result is somewhat reasonable
    809810                        LatLon llBack = eastNorth2latlon(enPole);
    810                         if (llBack.isValid() && ll.greatCircleDistance(llBack) < 1000) {
     811                        if (llBack.isValid() && ll.greatCircleDistance((ILatLon) llBack) < 1000) {
    811812                            polesEN.put(p, enPole);
    812813                        }
Note: See TracChangeset for help on using the changeset viewer.