Ignore:
Timestamp:
2022-06-15T20:10:48+02:00 (2 years ago)
Author:
taylor.smock
Message:

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

This uses the extracted methods where possible, and removes unnecessary
Node#getCoor calls.

Location:
applications/editors/josm/plugins/infomode
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/infomode/build.xml

    r35221 r35978  
    55    <property name="commit.message" value="InfoMode : for shortcurt parser"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="15502"/>
     7    <property name="plugin.main.version" value="18494"/>
    88
    99    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoMode.java

    r35221 r35978  
    289289                    double vel = -1;
    290290                    if (prevWp != null && wp.getTimeInMillis() != prevWp.getTimeInMillis()) {
    291                         vel = wp.getCoor().greatCircleDistance(prevWp.getCoor())/
     291                        vel = wp.greatCircleDistance(prevWp)/
    292292                                (wp.getTime()-prevWp.getTime());
    293293                    }
Note: See TracChangeset for help on using the changeset viewer.