Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/Interpolator.java @ 1119:7c4f81f74c47
merged gnv-artifacts
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:00 +0200 |
parents | f953c9a559d8 |
children |
comparison
equal
deleted
inserted
replaced
1027:fca4b5eb8d2f | 1119:7c4f81f74c47 |
---|---|
1 /* | |
2 * Copyright (c) 2010 by Intevation GmbH | |
3 * | |
4 * This program is free software under the LGPL (>=v2.1) | |
5 * Read the file LGPL.txt coming with the software for details | |
6 * or visit http://www.gnu.org/licenses/ if it does not exist. | |
7 */ | |
8 | |
9 package de.intevation.gnv.math; | |
10 | |
11 import com.vividsolutions.jts.geom.Coordinate; | |
12 | |
13 /** | |
14 * Implementations of this interface interpolate coordinates | |
15 * a line at a given point determined by a factor t (0 <= t <= 1).<br> | |
16 * If t = 0 the start point of the line is used.<br> | |
17 * If t = 1 the start point of the line is used. | |
18 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> | |
19 */ | |
20 public interface Interpolator | |
21 { | |
22 /** | |
23 * Interpolates a point along a line with a given factor between 0 and 1. | |
24 * @param t The factor. | |
25 * @param v The result of the interpolation is stored in this coordinate. | |
26 */ | |
27 void interpolate(double t, Coordinate v); | |
28 } | |
29 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |