comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/Metrics.java @ 805:bb7afd783321

Removed trailing whitespace. Added more javadoc. gnv-artifacts/trunk@887 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 08 Apr 2010 11:31:44 +0000
parents 6cff63d0c434
children f953c9a559d8
comparison
equal deleted inserted replaced
804:9058c08eac3a 805:bb7afd783321
1 package de.intevation.gnv.math; 1 package de.intevation.gnv.math;
2 2
3 import com.vividsolutions.jts.geom.Coordinate; 3 import com.vividsolutions.jts.geom.Coordinate;
4 4
5 /** 5 /**
6 * Implementations provides the ability to calculate the distance between
7 * two points ans support for interpolating points between two points.
8 *
6 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> 9 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a>
7 */ 10 */
8 public interface Metrics 11 public interface Metrics
9 { 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 */
10 double distance(Coordinate p1, Coordinate p2); 19 double distance(Coordinate p1, Coordinate p2);
11 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 */
12 Interpolator getInterpolator(Coordinate p1, Coordinate p2); 28 Interpolator getInterpolator(Coordinate p1, Coordinate p2);
13 } 29 }
14 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 30 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org