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 Details

    • InterpolatableTimePoint

      public InterpolatableTimePoint​(double time, T dataValue)
  • 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

      public abstract T toDataValue​(double[] doubleValues)
      Reverses getDoubleValues() method. Converts an array of interpolated double values back into the data value type.