- Timestamp:
- 2014-05-07T15:37:35+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Geometry.java
r7012 r7072 701 701 EastNorth n1 = nodes.get((i+1) % nodes.size()).getEastNorth(); 702 702 703 if (n0 .isValid() && n1.isValid()) {703 if (n0 != null && n1 != null && n0.isValid() && n1.isValid()) { 704 704 BigDecimal x0 = new BigDecimal(n0.east()); 705 705 BigDecimal y0 = new BigDecimal(n0.north()); … … 727 727 /** 728 728 * Compute center of the circle closest to different nodes. 729 * 729 * 730 730 * Ensure exact center computation in case nodes are already aligned in circle. 731 731 * This is done by least square method. … … 788 788 return new EastNorth(xC, yC); 789 789 } 790 790 791 791 /** 792 792 * Returns the coordinate of intersection of segment sp1-sp2 and an altitude
Note:
See TracChangeset
for help on using the changeset viewer.