comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/Segment.java @ 8860:28df64078f27

Merge with 0862ea5d66baf60e7eee496d130a35157cc9ec12
author gernotbelger
date Fri, 19 Jan 2018 11:23:42 +0100
parents 5e38e2924c07
children 0c621beceb2f 0a5239a1e46e
comparison
equal deleted inserted replaced
8854:7bbfb24e6eec 8860:28df64078f27
60 60
61 public boolean isUp() { 61 public boolean isUp() {
62 return from < to; 62 return from < to;
63 } 63 }
64 64
65 /** Checks whether given km lies inside the to/from bounds of this segment. */ 65 /** Checks if given km lies inside the to/from bounds of this segment. */
66 public boolean inside(double km) { 66 public boolean inside(double km) {
67 return from < to 67 return from < to
68 ? km >= from && km <= to 68 ? km >= from && km <= to
69 : km >= to && km <= from; 69 : km >= to && km <= from;
70 } 70 }

http://dive4elements.wald.intevation.org