Class LinearInterpolation
- java.lang.Object
-
- nl.tudelft.simulation.dsol.animation.interpolation.LinearInterpolation
-
- All Implemented Interfaces:
InterpolationInterface
public class LinearInterpolation extends Object implements InterpolationInterface
A LinearInterpolation.Copyright (c) 2002-2023 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.
- Author:
- Peter Jacobs
-
-
Constructor Summary
Constructors Constructor Description LinearInterpolation(double startTime, double endTime, OrientedPoint3d origin, OrientedPoint3d destination)constructs a new LinearInterpolation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrientedPoint3dgetLocation(double time)returns the current location.
-
-
-
Constructor Detail
-
LinearInterpolation
public LinearInterpolation(double startTime, double endTime, OrientedPoint3d origin, OrientedPoint3d destination)constructs a new LinearInterpolation.- Parameters:
startTime- double; the startingTimeendTime- double; the endTimeorigin- OrientedPoint3d; the origindestination- OrientedPoint3d; the destination
-
-
Method Detail
-
getLocation
public OrientedPoint3d getLocation(double time)
returns the current location.- Specified by:
getLocationin interfaceInterpolationInterface- Parameters:
time- double; the current time- Returns:
- OrientedPoint3d the current location
-
-