Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/geom/Lines.java @ 2679:22c8a9b4de31
Minimal doc, TODO.
flys-artifacts/trunk@4377 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 10 May 2012 09:28:01 +0000 |
parents | 2be59d5b342c |
children | b94b367d8b4d |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/geom/Lines.java Thu May 10 09:13:33 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/geom/Lines.java Thu May 10 09:28:01 2012 +0000 @@ -70,6 +70,15 @@ } + /** + * For a cross section given as points and a waterlevel (in meters), + * create a set of lines that represent the water surface, assuming it + * is distributed horizontally equally. + * @param points the points describing the river bed. + * @param waterLevel the height of the horizontal water line. + * @return A list of Lines representing the water surface and the + * calculated area between water surface and river bed. + */ public static ListWithArea fillWater(List<Point2D> points, double waterLevel) { boolean debug = log.isDebugEnabled(); @@ -95,6 +104,7 @@ p.getX(), waterLevel, p.getX(), waterLevel)); } + // TODO continue calculating area. return new ListWithArea(result, 0d); }