Package org.vanted.animation.data
Class Point2DTimePoint
java.lang.Object
org.vanted.animation.data.TimePoint<T>
org.vanted.animation.data.InterpolatableTimePoint<Point2D>
org.vanted.animation.data.Point2DTimePoint
public class Point2DTimePoint extends InterpolatableTimePoint<Point2D>
- Author:
- - Patrick Shaw
-
Constructor Summary
Constructors Constructor Description Point2DTimePoint(double time, double x, double y)
Point2DTimePoint(double time, Point2D point)
-
Method Summary
Modifier and Type Method Description double[]
getDoubleValues()
Unpacks the data value and turns it into an array of double values.double
getX()
double
getY()
void
setX(double x)
void
setY(double y)
Point2D
toDataValue(double[] doubleValues)
ReversesInterpolatableTimePoint.getDoubleValues()
method.String
toString()
Methods inherited from class org.vanted.animation.data.TimePoint
getDataValue, getTime, setDataValue, setTime, setTime
-
Constructor Details
-
Point2DTimePoint
public Point2DTimePoint(double time, double x, double y) -
Point2DTimePoint
-
-
Method Details
-
getX
public double getX() -
getY
public double getY() -
setX
public void setX(double x) -
setY
public void setY(double y) -
toString
-
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<Point2D>
-
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<Point2D>
-