Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/MainValuesQFacet.java @ 8860:28df64078f27
Merge with 0862ea5d66baf60e7eee496d130a35157cc9ec12
author | gernotbelger |
---|---|
date | Fri, 19 Jan 2018 11:23:42 +0100 |
parents | 5e38e2924c07 |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8854:7bbfb24e6eec | 8860:28df64078f27 |
---|---|
51 /** | 51 /** |
52 * Set the hit-point in Q where a line drawn from the axis would hit the | 52 * Set the hit-point in Q where a line drawn from the axis would hit the |
53 * curve in WQDay (if hit). | 53 * curve in WQDay (if hit). |
54 * Employ linear interpolation. | 54 * Employ linear interpolation. |
55 */ | 55 */ |
56 protected static void setHitPoint(WQDay wqday, StickyAxisAnnotation annotation) { | 56 protected static void setHitPoint( |
57 WQDay wqday, | |
58 StickyAxisAnnotation annotation | |
59 ) { | |
57 | 60 |
58 float q = annotation.getPos(); | 61 float q = annotation.getPos(); |
59 Double day = wqday.interpolateDayByQ(q); | 62 Double day = wqday.interpolateDayByQ(q); |
60 | 63 |
61 if (day != null) { | 64 if (day != null) { |