Changeset 7828 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2014-12-19T01:52:29+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Geometry.java
r7792 r7828 314 314 /** 315 315 * Finds the intersection of two lines of infinite length. 316 * 316 * 317 317 * @param p1 first point on first line 318 318 * @param p2 second point on first line … … 328 328 CheckParameterUtil.ensureValidCoordinates(p3, "p3"); 329 329 CheckParameterUtil.ensureValidCoordinates(p4, "p4"); 330 330 331 331 if (!p1.isValid()) throw new IllegalArgumentException(); 332 332 … … 575 575 Node oldPoint = polygonNodes.get(polygonNodes.size() - 1); 576 576 577 if (!oldPoint.isLatLonKnown()) { 578 return false; 579 } 580 577 581 for (Node newPoint : polygonNodes) { 578 582 //skip duplicate points 579 583 if (newPoint.equals(oldPoint)) { 580 584 continue; 585 } 586 587 if (!newPoint.isLatLonKnown()) { 588 return false; 581 589 } 582 590 … … 733 741 result -= 2 * Math.PI; 734 742 } 735 743 736 744 return result; 737 745 }
Note:
See TracChangeset
for help on using the changeset viewer.