|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.dsol.animation.interpolation.LinearInterpolation
public class LinearInterpolation
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.
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 |
---|
protected double startTime
protected double endTime
Constructor Detail |
---|
public LinearInterpolation(double startTime, double endTime, DirectedPoint origin, DirectedPoint destination)
startTime
- the startingTimeendTime
- the endTimeorigin
- the origindestination
- the destinationMethod Detail |
---|
public DirectedPoint getLocation(double time)
InterpolationInterface
getLocation
in interface InterpolationInterface
time
- the current time
#getLocation(double)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |