vmm3d.functions
Class Expression
- java.lang.Object
-
- vmm3d.functions.Function
-
- vmm3d.functions.Expression
-
public class Expression extends Function
Represents a real-valued expression. An expression can only be produced by aParser. An expression is implemented as a Function that has no arguments (and no name).- See Also:
Parser.parseExpression(String)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublevalue()Evaluate this expression (using an EvalStack that is unique to the current Thread).doublevalue(EvalStack stack)Evaluate this expression using a stack provided as a parameter.
-
-
-
Method Detail
-
value
public double value()
Evaluate this expression (using an EvalStack that is unique to the current Thread).
-
value
public double value(EvalStack stack)
Evaluate this expression using a stack provided as a parameter.- Parameters:
stack- a non-null stack to be used for evaluating the expression.
-
-
DMelt 3.0 © DataMelt by jWork.ORG