Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/Interpolator.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 | bb7afd783321 |
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 * Implementations of this interface interpolate coordinates | |
7 * a line at a given point determined by a factor t (0 <= t <= 1).<br> | |
8 * If t = 0 the start point of the line is used.<br> | |
9 * If t = 1 the start point of the line is used. | |
10 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> | |
11 */ | |
12 public interface Interpolator | |
13 { | |
14 /** | |
15 * Interpolates a point along a line with a given factor between 0 and 1. | |
16 * @param t The factor. | |
17 * @param v The result of the interpolation is stored in this coordinate. | |
18 */ | |
19 void interpolate(double t, Coordinate v); | |
20 } | |
21 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |