org.jagatoo.loaders.models.collada.datastructs.controllers
Class KeyFrameComputer

java.lang.Object
  extended by org.jagatoo.loaders.models.collada.datastructs.controllers.KeyFrameComputer

public class KeyFrameComputer
extends java.lang.Object

This class is used to interpolate Tuple3f from keyframe data.


Constructor Summary
KeyFrameComputer()
           
 
Method Summary
static void computeQuaternion4f(long currentTime, java.util.List<KeyFrameQuat4f> keyFrames, org.openmali.vecmath2.Quaternion4f toInterpolate)
          Interpolate a Quaternion4f between two keyframes
static void computeTuple3f(long currentTime, java.util.List<KeyFrameTuple3f> keyFrames, org.openmali.vecmath2.Tuple3f toInterpolate)
          Interpolates a Tuple3f between two keyframes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyFrameComputer

public KeyFrameComputer()
Method Detail

computeTuple3f

public static void computeTuple3f(long currentTime,
                                  java.util.List<KeyFrameTuple3f> keyFrames,
                                  org.openmali.vecmath2.Tuple3f toInterpolate)
Interpolates a Tuple3f between two keyframes.

Parameters:
currentTime - The time in the animation
keyFrames - The keyframes of the animation (translation or scaling)
toInterpolate -

computeQuaternion4f

public static void computeQuaternion4f(long currentTime,
                                       java.util.List<KeyFrameQuat4f> keyFrames,
                                       org.openmali.vecmath2.Quaternion4f toInterpolate)
Interpolate a Quaternion4f between two keyframes

Parameters:
currentTime - The time in the animation
keyFrames - The keyframes of the animation (translation or scaling)
toInterpolate -