comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/ConstantXYDepth.java @ 875:5e9efdda6894

merged gnv-artifacts/1.0
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:13:56 +0200
parents 05bf8534a35a
children f953c9a559d8
comparison
equal deleted inserted replaced
722:bb3ffe7d719e 875:5e9efdda6894
1 package de.intevation.gnv.math;
2
3 import com.vividsolutions.jts.geom.Coordinate;
4
5 /**
6 * Instances of the implementation return a constant value.
7 *
8 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a>
9 */
10 public class ConstantXYDepth
11 implements XYDepth
12 {
13 /**
14 * The constant depth.
15 */
16 protected double depth;
17
18 /**
19 * Default constructor. The constant depth = 0.
20 */
21 public ConstantXYDepth() {
22 }
23
24 /**
25 * Construtor to create a ConstantXYDepth with a given depth.
26 * @param depth The constant depth.
27 */
28 public ConstantXYDepth(double depth) {
29 this.depth = depth;
30 }
31
32 public double depth(Coordinate coordinate) {
33 return depth;
34 }
35 }
36 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org