12 private readonly
double high;
13 private readonly
double low;
14 private readonly
double waves;
45 return new string[] {
"high",
"low",
"waves" };
58 return new BlobVariation(High, Low, Waves, this.Arguments[0], this.Arguments[1], this.Arguments[2],
65 public override void Operate(ref
double x, ref
double y)
67 double r = Math.Sqrt(x * x + y * y);
68 double a = Math.Atan2(x, y);
69 r *= this.low + (this.high - this.low) * 0.5 * (Math.Sin(
this.waves * a) + 1);
Class managing a script expression.
static double ToDouble(object Object)
Converts an object to a double value.
override string[] DefaultArgumentNames
TODO
override void Operate(ref double x, ref double y)
TODO
BlobVariation(ScriptNode high, ScriptNode low, ScriptNode waves, int Start, int Length, Expression Expression)
TODO
override IElement Evaluate(IElement[] Arguments, Variables Variables)
TODO
override string FunctionName
TODO
object AssociatedObjectValue
TODO
ScriptNode[] Arguments
Function arguments.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
Expression Expression
Expression of which the node is a part.
int Start
Start position in script expression.
Basic interface for all types of elements.
ArgumentType
Type of parameter used in a function definition or a lambda definition.