Ignore:
Timestamp:
2022-06-15T19:27:05+02:00 (3 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/coor/LatLonTest.java

    r17275 r18494  
    170170    @Test
    171171    void testBearing() {
    172         LatLon c = new LatLon(47.000000, 19.000000);
    173         LatLon e = new LatLon(47.000000, 19.000001);
    174         LatLon n = new LatLon(47.000001, 19.000000);
     172        ILatLon c = new LatLon(47.000000, 19.000000);
     173        ILatLon e = new LatLon(47.000000, 19.000001);
     174        ILatLon n = new LatLon(47.000001, 19.000000);
    175175        assertEquals(0, Math.toDegrees(c.bearing(n)), EPSILON);
    176176        assertEquals(90, Math.toDegrees(c.bearing(e)), EPSILON);
Note: See TracChangeset for help on using the changeset viewer.