Package jme3utilities.wes
Class RotationCurve
java.lang.Object
jme3utilities.wes.RotationCurve
Encapsulate a rotation curve. This is a performance optimization for
interpolating many times on a single spline.
-
Constructor Summary
ConstructorsConstructorDescriptionRotationCurve(float[] times, float cycleTime, com.jme3.math.Quaternion[] quaternions) Instantiate a generic rotation curve. -
Method Summary
-
Constructor Details
-
RotationCurve
public RotationCurve(float[] times, float cycleTime, com.jme3.math.Quaternion[] quaternions) Instantiate a generic rotation curve.- Parameters:
times- sample times (not null, alias created)cycleTime- end time for loopingquaternions- function values at sample times (not null, alias created, same length as times)
-