ingo@1115: /* ingo@1115: * Copyright (c) 2010 by Intevation GmbH ingo@1115: * ingo@1115: * This program is free software under the LGPL (>=v2.1) ingo@1115: * Read the file LGPL.txt coming with the software for details ingo@1115: * or visit http://www.gnu.org/licenses/ if it does not exist. ingo@1115: */ ingo@1115: sascha@445: package de.intevation.gnv.math; sascha@445: sascha@445: import com.vividsolutions.jts.geom.Coordinate; sascha@445: sascha@445: /** sascha@805: * Instances of the implementation return a constant value. sascha@805: * sascha@780: * @author Sascha L. Teichmann sascha@445: */ sascha@445: public class ConstantXYDepth sascha@445: implements XYDepth sascha@445: { sascha@805: /** sascha@805: * The constant depth. sascha@805: */ sascha@445: protected double depth; sascha@445: sascha@805: /** sascha@805: * Default constructor. The constant depth = 0. sascha@805: */ sascha@445: public ConstantXYDepth() { sascha@445: } sascha@445: sascha@805: /** sascha@805: * Construtor to create a ConstantXYDepth with a given depth. sascha@805: * @param depth The constant depth. sascha@805: */ sascha@445: public ConstantXYDepth(double depth) { sascha@445: this.depth = depth; sascha@445: } sascha@445: sascha@445: public double depth(Coordinate coordinate) { sascha@445: return depth; sascha@445: } sascha@445: } sascha@836: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :