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/trustosm/src/org/openstreetmap/josm/plugins/trustosm/util/TrustAnalyzer.java

    r34565 r35978  
    9595        Node signedNode = TrustNode.generateNodeFromSigtext(signedPlaintext);
    9696        Node currentNode = (Node) trust.getOsmPrimitive();
    97         double dist = signedNode.getCoor().greatCircleDistance(currentNode.getCoor());
     97        double dist = signedNode.greatCircleDistance(currentNode);
    9898
    9999        /** is distance between signed Node and current Node inside tolerance? */
     
    157157            Node signedNode = signedSegment.get(i);
    158158            Node currentNode = nodes.get(i);
    159             double dist = signedNode.getCoor().greatCircleDistance(currentNode.getCoor());
     159            double dist = signedNode.greatCircleDistance(currentNode);
    160160            if (dist > tolerance) return false;
    161161        }
Note: See TracChangeset for help on using the changeset viewer.