Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/LinearToMap.java @ 778:9a828e5a2390
Removed trailing whitespace
gnv-artifacts/trunk@851 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 29 Mar 2010 07:58:51 +0000 |
parents | aec85d00d82c |
children | b1f5f2a8840f |
comparison
equal
deleted
inserted
replaced
777:8009961db1cb | 778:9a828e5a2390 |
---|---|
25 | 25 |
26 public Range() { | 26 public Range() { |
27 } | 27 } |
28 | 28 |
29 public Range( | 29 public Range( |
30 double from, | 30 double from, |
31 double to, | 31 double to, |
32 Interpolator interpolator, | 32 Interpolator interpolator, |
33 Coordinate p1, | 33 Coordinate p1, |
34 Coordinate p2 | 34 Coordinate p2 |
35 ) { | 35 ) { |
66 | 66 |
67 public LinearToMap() { | 67 public LinearToMap() { |
68 } | 68 } |
69 | 69 |
70 public LinearToMap( | 70 public LinearToMap( |
71 List<? extends Coordinate> path, | 71 List<? extends Coordinate> path, |
72 double from, | 72 double from, |
73 double to, | 73 double to, |
74 Metrics metrics | 74 Metrics metrics |
75 ) { | 75 ) { |
76 double diagramLength = Math.abs(to - from); | 76 double diagramLength = Math.abs(to - from); |
77 | 77 |
133 range.eval(diagramX, v); | 133 range.eval(diagramX, v); |
134 return true; | 134 return true; |
135 } | 135 } |
136 | 136 |
137 public static double length( | 137 public static double length( |
138 List<? extends Coordinate> path, | 138 List<? extends Coordinate> path, |
139 Metrics metrics | 139 Metrics metrics |
140 ) { | 140 ) { |
141 double sum = 0d; | 141 double sum = 0d; |
142 for (int i = path.size()-1; i >= 1; --i) { | 142 for (int i = path.size()-1; i >= 1; --i) { |
143 Coordinate p1 = path.get(i); | 143 Coordinate p1 = path.get(i); |