Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/L1Comparator.java @ 474:ab29e4ff2fda
Added area interpolation needed for "Horizontalschnitt"
gnv-artifacts/trunk@540 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 14 Jan 2010 10:34:05 +0000 |
parents | aec85d00d82c |
children | b1f5f2a8840f |
comparison
equal
deleted
inserted
replaced
473:a6a33ef35809 | 474:ab29e4ff2fda |
---|---|
10 public class L1Comparator | 10 public class L1Comparator |
11 implements Comparator | 11 implements Comparator |
12 { | 12 { |
13 private Coordinate ref; | 13 private Coordinate ref; |
14 | 14 |
15 public L1Comparator() { | |
16 } | |
17 | |
15 public L1Comparator(Coordinate ref) { | 18 public L1Comparator(Coordinate ref) { |
19 this.ref = ref; | |
20 } | |
21 | |
22 public void setReference(Coordinate ref) { | |
16 this.ref = ref; | 23 this.ref = ref; |
17 } | 24 } |
18 | 25 |
19 public int compare(Object a, Object b) { | 26 public int compare(Object a, Object b) { |
20 Coordinate pa = (Coordinate)a; | 27 Coordinate pa = (Coordinate)a; |