Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
FanVariation.cs
1using System;
2
4{
9 {
14 : base(Start, Length, Expression)
15 {
16 }
17
21 public override void Operate(ref double x, ref double y)
22 {
23 double r = Math.Sqrt(x * x + y * y);
24 double a = Math.Atan2(x, y);
25 double t = this.homogeneousTransform[2];
26 t = Math.PI * t * t + 1e-6;
27
28 if (Math.IEEERemainder(a + this.homogeneousTransform[5], t) > t / 2)
29 a -= t / 2;
30 else
31 a += t / 2;
32
33 x = r * Math.Cos(a);
34 y = r * Math.Sin(a);
35 }
36
40 public override string FunctionName => nameof(FanVariation);
41 }
42}
Class managing a script expression.
Definition: Expression.cs:39
override void Operate(ref double x, ref double y)
TODO
Definition: FanVariation.cs:21
FanVariation(int Start, int Length, Expression Expression)
TODO
Definition: FanVariation.cs:13
int Length
Length of expression covered by node.
Definition: ScriptNode.cs:101
int Start
Start position in script expression.
Definition: ScriptNode.cs:92