comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/QRangeTree.java @ 7027:21064459dc5d

Doc.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 16 Sep 2013 17:29:16 +0200
parents 07e31234d294
children 682a26e4158b
comparison
equal deleted inserted replaced
7026:675fa2d16544 7027:21064459dc5d
82 double m = (q - next.q)/(b - next.a); 82 double m = (q - next.q)/(b - next.a);
83 double n = q - m*b; 83 double n = q - m*b;
84 return m*pos + n; 84 return m*pos + n;
85 } 85 }
86 86
87 /** @param pos the station (km). */
87 public double findQ(double pos) { 88 public double findQ(double pos) {
88 89
89 Node current = this; 90 Node current = this;
90 for (;;) { 91 for (;;) {
91 if (pos < current.a) { 92 if (pos < current.a) {

http://dive4elements.wald.intevation.org