hmi.elckerlyc.animationengine.procanimation
Class TCBSplineJEP

java.lang.Object
  extended by org.nfunk.jep.function.PostfixMathCommand
      extended by hmi.elckerlyc.animationengine.procanimation.TCBSplineJEP
All Implemented Interfaces:
org.nfunk.jep.function.PostfixMathCommandI

public class TCBSplineJEP
extends org.nfunk.jep.function.PostfixMathCommand

JEP implementation of project.mathutils.TCBSpline Syntax: tcbspline(t,v0,vn, p0,t0, pi,ti,tensi,conti,biasi,...,pn,tn) With t = time, 0 < t < 1 v0 = start speed vn = end speed pi = point i ti = time stamp i, ti-1 < ti < ti+1 tensi = tensity i, -1 < tensity < 1, default = 0 conti = continuity i, -1 < conti < 1, default = 0 biasi = bias i, -1 < bias < 1, default = 0

Author:
welberge

Field Summary
private  TCBSpline spline
           
 
Fields inherited from class org.nfunk.jep.function.PostfixMathCommand
curNumberOfParameters, numberOfParameters
 
Constructor Summary
TCBSplineJEP()
          Constructor
 
Method Summary
 void run(Stack inStack)
          Runs the hermite spline operation on the inStack.
 
Methods inherited from class org.nfunk.jep.function.PostfixMathCommand
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

spline

private TCBSpline spline
Constructor Detail

TCBSplineJEP

public TCBSplineJEP()
Constructor

Method Detail

run

public void run(Stack inStack)
         throws org.nfunk.jep.ParseException
Runs the hermite spline operation on the inStack. The parameters are popped off the inStack, and the interpolated value is pushed back to the top of inStack.

Specified by:
run in interface org.nfunk.jep.function.PostfixMathCommandI
Overrides:
run in class org.nfunk.jep.function.PostfixMathCommand
Throws:
org.nfunk.jep.ParseException