Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Rotate2DH.cs
1
using
System;
2
using
Waher.Script.Abstraction.Elements
;
3
using
Waher.Script.Model
;
4
using
Waher.Script.Objects.Matrices
;
5
6
namespace
Waher.Script.Functions.Transforms
7
{
11
public
class
Rotate2DH
:
FunctionOneScalarVariable
12
{
20
public
Rotate2DH
(
ScriptNode
Angle,
int
Start
,
int
Length
,
Expression
Expression
)
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
53
public
override
IElement
EvaluateScalar
(
double
Argument
,
Variables
Variables
)
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
}
Waher.Script.Expression
Class managing a script expression.
Definition:
Expression.cs:39
Waher.Script.Functions.Transforms.Rotate2DH
Creates a rotation matrix in 2-dimentional homogenous coordinates.
Definition:
Rotate2DH.cs:12
Waher.Script.Functions.Transforms.Rotate2DH.DefaultArgumentNames
override string[] DefaultArgumentNames
Default Argument names
Definition:
Rotate2DH.cs:40
Waher.Script.Functions.Transforms.Rotate2DH.Rotate2DH
Rotate2DH(ScriptNode Angle, int Start, int Length, Expression Expression)
Creates a rotation matrix in 2-dimentional homogenous coordinates.
Definition:
Rotate2DH.cs:20
Waher.Script.Functions.Transforms.Rotate2DH.FunctionName
override string FunctionName
Name of the function
Definition:
Rotate2DH.cs:29
Waher.Script.Functions.Transforms.Rotate2DH.EvaluateScalar
override IElement EvaluateScalar(double Argument, Variables Variables)
Evaluates the function on a scalar argument.
Definition:
Rotate2DH.cs:53
Waher.Script.Model.FunctionOneScalarVariable
Base class for funcions of one scalar variable.
Definition:
FunctionOneScalarVariable.cs:15
Waher.Script.Model.FunctionOneVariable.Argument
ScriptNode Argument
Function argument.
Definition:
FunctionOneVariable.cs:33
Waher.Script.Model.ScriptNode
Base class for all nodes in a parsed script tree.
Definition:
ScriptNode.cs:69
Waher.Script.Model.ScriptNode.Length
int Length
Length of expression covered by node.
Definition:
ScriptNode.cs:101
Waher.Script.Model.ScriptNode.Start
int Start
Start position in script expression.
Definition:
ScriptNode.cs:92
Waher.Script.Objects.Matrices.DoubleMatrix
Double-valued matrix.
Definition:
DoubleMatrix.cs:17
Waher.Script.Variables
Collection of variables.
Definition:
Variables.cs:25
Waher.Script.Abstraction.Elements.IElement
Basic interface for all types of elements.
Definition:
IElement.cs:20
Waher.Script.Abstraction.Elements
Definition:
AbelianGroupElement.cs:5
Waher.Script.Functions.Transforms
Definition:
Rotate2D.cs:7
Waher.Script.Model
Definition:
BinaryBooleanOperator.cs:8
Waher.Script.Objects.Matrices
Definition:
BooleanMatrices.cs:6
IoTGateway
Script
Waher.Script
Functions
Transforms
Rotate2DH.cs
Generated by
1.9.5