Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/Metrics.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 provides the ability to calculate the distance between | |
7 * two points ans support for interpolating points between two points. | |
8 * | |
9 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> | |
10 */ | |
11 public interface Metrics | |
12 { | |
13 /** | |
14 * Calculates the distance between two given points. | |
15 * @param p1 The first point. | |
16 * @param p2 The second point. | |
17 * @return The distance. | |
18 */ | |
19 double distance(Coordinate p1, Coordinate p2); | |
20 | |
21 /** | |
22 * Return an interpolator which allows interpolations between | |
23 * two given points. | |
24 * @param p1 The first point. | |
25 * @param p2 The second point. | |
26 * @return The interpolator. | |
27 */ | |
28 Interpolator getInterpolator(Coordinate p1, Coordinate p2); | |
29 } | |
30 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |