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 of this interface interpolate coordinates
sascha@805: * a line at a given point determined by a factor t (0 <= t <= 1).
sascha@805: * If t = 0 the start point of the line is used.
sascha@805: * If t = 1 the start point of the line is used.
sascha@798: * @author Sascha L. Teichmann
sascha@361: */
sascha@361: public interface Interpolator
sascha@361: {
sascha@805: /**
sascha@805: * Interpolates a point along a line with a given factor between 0 and 1.
sascha@805: * @param t The factor.
sascha@805: * @param v The result of the interpolation is stored in this coordinate.
sascha@805: */
sascha@361: void interpolate(double t, Coordinate v);
sascha@361: }
sascha@798: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :