Package org.vanted.animation.data
Class InterpolatableTimePoint<T>
java.lang.Object
org.vanted.animation.data.TimePoint<T>
org.vanted.animation.data.InterpolatableTimePoint<T>
- Direct Known Subclasses:
ColorTimePoint
,DoubleTimePoint
,Point2DTimePoint
,VectorTimePoint
public abstract class InterpolatableTimePoint<T> extends TimePoint<T>
Inherit from this class instead of TimePoint if the data point is capable of
being interpolated
- Author:
- - Patrick Shaw
-
Constructor Summary
Constructors Constructor Description InterpolatableTimePoint(double time, T dataValue)
-
Method Summary
Modifier and Type Method Description abstract double[]
getDoubleValues()
Unpacks the data value and turns it into an array of double values.abstract T
toDataValue(double[] doubleValues)
ReversesgetDoubleValues()
method.Methods inherited from class org.vanted.animation.data.TimePoint
getDataValue, getTime, setDataValue, setTime, setTime, toString
-
Constructor Details
-
InterpolatableTimePoint
-
-
Method Details
-
getDoubleValues
public abstract double[] getDoubleValues()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. -
toDataValue
ReversesgetDoubleValues()
method. Converts an array of interpolated double values back into the data value type.
-