Ignore:
Timestamp:
2022-06-15T20:10:48+02:00 (3 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/livegps/src/livegps/AppendableGpxTrackSegment.java

    r35221 r35978  
    3939
    4040        if (size > 0) {
    41             Double distance = wayPoints[size - 1].getCoor().greatCircleDistance(p.getCoor());
    42             if (!distance.isNaN() && !distance.isInfinite()) {
     41            double distance = wayPoints[size - 1].greatCircleDistance(p);
     42            if (!Double.isNaN(distance) && !Double.isInfinite(distance)) {
    4343                length += distance;
    4444            }
Note: See TracChangeset for help on using the changeset viewer.