nl.tudelft.simulation.dsol.animation.interpolation
Class LinearInterpolation

java.lang.Object
  extended by nl.tudelft.simulation.dsol.animation.interpolation.LinearInterpolation
All Implemented Interfaces:
InterpolationInterface

public class LinearInterpolation
extends Object
implements InterpolationInterface

A LinearInterpolation
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:21:29 $
Author:
Peter Jacobs

Field Summary
protected  double endTime
          the end time
protected  double startTime
          the start time
 
Constructor Summary
LinearInterpolation(double startTime, double endTime, DirectedPoint origin, DirectedPoint destination)
          constructs a new LinearInterpolation
 
Method Summary
 DirectedPoint getLocation(double time)
          returns the current location
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startTime

protected double startTime
the start time


endTime

protected double endTime
the end time

Constructor Detail

LinearInterpolation

public LinearInterpolation(double startTime,
                           double endTime,
                           DirectedPoint origin,
                           DirectedPoint destination)
constructs a new LinearInterpolation

Parameters:
startTime - the startingTime
endTime - the endTime
origin - the origin
destination - the destination
Method Detail

getLocation

public DirectedPoint getLocation(double time)
Description copied from interface: InterpolationInterface
returns the current location

Specified by:
getLocation in interface InterpolationInterface
Parameters:
time - the current time
Returns:
DirectedPoint the current location
See Also:
#getLocation(double)


Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.