hmi.elckerlyc.animationengine.procanimation
Class TCBSplineJEP
java.lang.Object
org.nfunk.jep.function.PostfixMathCommand
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
| Fields inherited from class org.nfunk.jep.function.PostfixMathCommand |
curNumberOfParameters, numberOfParameters |
|
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 |
spline
private TCBSpline spline
TCBSplineJEP
public TCBSplineJEP()
- Constructor
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