Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Rotate2DH.cs
1using System;
5
7{
12 {
21 : base(Angle, Start, Length, Expression)
22 {
23 }
24
28 public override string FunctionName
29 {
30 get
31 {
32 return "Rotate2DH";
33 }
34 }
35
39 public override string[] DefaultArgumentNames
40 {
41 get
42 {
43 return new string[] { "angle" };
44 }
45 }
46
54 {
55 double S = Math.Sin(Argument);
56 double C = Math.Cos(Argument);
57 double[,] E = new double[,] { { C, S, 0 }, { -S, C, 0 }, { 0, 0, 1 } };
58
59 return new DoubleMatrix(E);
60 }
61 }
62}
Class managing a script expression.
Definition: Expression.cs:39
Creates a rotation matrix in 2-dimentional homogenous coordinates.
Definition: Rotate2DH.cs:12
override string[] DefaultArgumentNames
Default Argument names
Definition: Rotate2DH.cs:40
Rotate2DH(ScriptNode Angle, int Start, int Length, Expression Expression)
Creates a rotation matrix in 2-dimentional homogenous coordinates.
Definition: Rotate2DH.cs:20
override string FunctionName
Name of the function
Definition: Rotate2DH.cs:29
override IElement EvaluateScalar(double Argument, Variables Variables)
Evaluates the function on a scalar argument.
Definition: Rotate2DH.cs:53
Base class for funcions of one scalar variable.
ScriptNode Argument
Function argument.
Base class for all nodes in a parsed script tree.
Definition: ScriptNode.cs:69
int Length
Length of expression covered by node.
Definition: ScriptNode.cs:101
int Start
Start position in script expression.
Definition: ScriptNode.cs:92
Collection of variables.
Definition: Variables.cs:25
Basic interface for all types of elements.
Definition: IElement.cs:20