Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/geom/Polygon2D.java @ 3076:5642a83420f2
FLYS artifacts: Removed trailing whitespace.
flys-artifacts/trunk@4670 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 15 Jun 2012 09:30:07 +0000 |
parents | 6f83d9d434f2 |
children | ed07dd55f487 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/geom/Polygon2D.java Thu Jun 14 15:46:20 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/geom/Polygon2D.java Fri Jun 15 09:30:07 2012 +0000 @@ -251,7 +251,7 @@ while (ai < as.length && bi < bs.length) { double xan = X(as[ai]); double xbn = X(bs[bi]); - if (xan == xbn) { + if (xan == xbn) { double yan = Y(as[ai]); double ybn = Y(bs[ai]); @@ -305,9 +305,9 @@ else if (xan > xbn) { line.set(apoints.get(apoints.size()-1), as[ai]); double dir = neg ? -1d: 1d; // XXX: correct sign? - while (bi < bs.length + while (bi < bs.length && X(bs[bi]) < xan - && line.eval(bs[bi])*dir > EPSILON) + && line.eval(bs[bi])*dir > EPSILON) ++bi; if (bi == bs.length) { // b run out of points @@ -353,7 +353,7 @@ } public void set(Point2D p1, Point2D p2) { - Point2D p3 = + Point2D p3 = VectorUtils.normalize( VectorUtils.sub(p1, p2)); @@ -415,7 +415,7 @@ // Sort out the ranges that are not intersecting // the ranges in the other series. // We are going to merge them anyway - // so this is not strictly required. + // so this is not strictly required. // Keep it to recude cases. if (removeNoneIntersecting(splAs, splBs) || removeNoneIntersecting(splBs, splAs)