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@361: package de.intevation.gnv.math; sascha@361: sascha@361: import com.vividsolutions.jts.geom.Coordinate; sascha@361: sascha@361: /** sascha@805: * Implementations provides the ability to calculate the distance between sascha@805: * two points ans support for interpolating points between two points. sascha@805: * sascha@798: * @author Sascha L. Teichmann sascha@361: */ sascha@361: public interface Metrics sascha@361: { sascha@805: /** sascha@805: * Calculates the distance between two given points. sascha@805: * @param p1 The first point. sascha@805: * @param p2 The second point. sascha@805: * @return The distance. sascha@805: */ sascha@361: double distance(Coordinate p1, Coordinate p2); sascha@361: sascha@805: /** sascha@805: * Return an interpolator which allows interpolations between sascha@805: * two given points. sascha@805: * @param p1 The first point. sascha@805: * @param p2 The second point. sascha@805: * @return The interpolator. sascha@805: */ sascha@361: Interpolator getInterpolator(Coordinate p1, Coordinate p2); sascha@361: } sascha@798: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :