12 private readonly
double holes;
13 private readonly
double eccentricity;
23 this.eccentricity = 0;
26 private ConicVariation(
double Holes,
double Eccentricity,
32 this.eccentricity = Eccentricity;
42 return new string[] {
"holes",
"eccentricity" };
54 return new ConicVariation(Holes, Eccentricity, this.Arguments[0], this.Arguments[1],
61 public override void Operate(ref
double x, ref
double y)
67 r1 = this.gen.NextDouble();
70 double a = Math.Atan2(y, x);
71 double r = (r1 - this.holes) * this.eccentricity / (1 + this.eccentricity + Math.Cos(a));
76 private readonly Random gen =
new Random();
Class managing a script expression.
static double ToDouble(object Object)
Converts an object to a double value.
override void Operate(ref double x, ref double y)
TODO
ConicVariation(ScriptNode holes, ScriptNode eccentricity, int Start, int Length, Expression Expression)
TODO
override IElement Evaluate(IElement[] Arguments, Variables Variables)
TODO
override string FunctionName
TODO
override string[] DefaultArgumentNames
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.