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/test/unit/org/openstreetmap/josm/data/projection/ProjectionTest.java

    r17275 r18494  
    1414import org.openstreetmap.josm.data.Bounds;
    1515import org.openstreetmap.josm.data.coor.EastNorth;
     16import org.openstreetmap.josm.data.coor.ILatLon;
    1617import org.openstreetmap.josm.data.coor.LatLon;
    1718
     
    171172            LatLon ll2 = p.eastNorth2latlon(en);
    172173            assertTrue(ll2.isValid(), p.toCode() + " at " + ll1 + " is " + ll2);
    173             double dist = ll1.greatCircleDistance(ll2);
     174            double dist = ll1.greatCircleDistance((ILatLon) ll2);
    174175            if (dist > eps) {
    175176                error2 = true;
Note: See TracChangeset for help on using the changeset viewer.