Package org.vanted.animation.data
Class DoubleTimePoint
public class DoubleTimePoint extends InterpolatableTimePoint<Double>
- Author:
- - Patrick Shaw
-
Constructor Summary
Constructors Constructor Description DoubleTimePoint(double time, Double value)
-
Method Summary
Modifier and Type Method Description double[]
getDoubleValues()
Unpacks the data value and turns it into an array of double values.Double
toDataValue(double[] doubleValues)
ReversesInterpolatableTimePoint.getDoubleValues()
method.Methods inherited from class org.vanted.animation.data.TimePoint
getDataValue, getTime, setDataValue, setTime, setTime, toString
-
Constructor Details
-
DoubleTimePoint
-
-
Method Details
-
getDoubleValues
public double[] getDoubleValues()Description copied from class:InterpolatableTimePoint
Unpacks the data value and turns it into an array of double values.
Any data values that are put in the returned array will be interpolated by an interpolator. This is how you specify which fields in the data value are manipulated.- Specified by:
getDoubleValues
in classInterpolatableTimePoint<Double>
-
toDataValue
Description copied from class:InterpolatableTimePoint
ReversesInterpolatableTimePoint.getDoubleValues()
method. Converts an array of interpolated double values back into the data value type.- Specified by:
toDataValue
in classInterpolatableTimePoint<Double>
-