Class MathProcessor
- Namespace
- FlowGraph.Core.DataFlow.Processors
- Assembly
- FlowGraph.Core.dll
A processor for numeric operations with two inputs.
public class MathProcessor : NodeProcessor, INodeProcessor
- Inheritance
-
MathProcessor
- Implements
- Inherited Members
Constructors
MathProcessor(Node, MathOperation)
Creates a new math processor.
public MathProcessor(Node node, MathOperation operation = MathOperation.Add)
Parameters
nodeNodeThe node.
operationMathOperationThe math operation to perform.
Properties
Operation
Gets or sets the math operation.
public MathOperation Operation { get; set; }
Property Value
Result
Gets the result.
public double Result { get; }
Property Value
Methods
Process()
Processes inputs and updates outputs. Called automatically when any input changes (if auto-execute is enabled).
public override void Process()