public class MathProcessor
extends java.lang.Object
pi
.
Will eventually handle 2D functions like sin()
, cos()
etc.Modifier and Type | Class and Description |
---|---|
class |
MathProcessor.Constant
A bean to hold a name and an rvalue
|
Constructor and Description |
---|
MathProcessor(PovclipseProjectProcessor projectProcessor) |
Modifier and Type | Method and Description |
---|---|
RValue |
evaluateFunction(PovClipseToken parent) |
RValue |
getConstant(java.lang.String name)
Find this constant.
|
double |
getVersion() |
void |
setIniDocument(IniDocument iniDocument) |
void |
setVersion(double newVersion) |
boolean |
versionCheck(PovClipseToken token,
int markerLength,
double expectedVersion)
Check if we are least the expectedVersion
return true if yes, otherwise mark the token and return false
|
public MathProcessor(PovclipseProjectProcessor projectProcessor)
public void setIniDocument(IniDocument iniDocument)
public RValue getConstant(java.lang.String name)
name
- The constant to findpublic double getVersion()
public void setVersion(double newVersion)
public boolean versionCheck(PovClipseToken token, int markerLength, double expectedVersion)
token
- The possibly offending tokenmarkerLength
- How long to make the marker (#for is 4, not the length of the #for/#end atom)expectedVersion
- The minimum version to use this token's featurepublic RValue evaluateFunction(PovClipseToken parent)