Class RotationCurve


  • public class RotationCurve
    extends java.lang.Object
    Encapsulate a rotation curve. This is a performance optimization for interpolating many times on a single spline.
    • Constructor Summary

      Constructors 
      Constructor Description
      RotationCurve​(float[] times, float cycleTime, com.jme3.math.Quaternion[] quaternions)
      Instantiate a generic rotation curve.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 looping
        quaternions - function values at sample times (not null, alias created, same length as times)