Table of Contents

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

node Node

The node.

operation MathOperation

The math operation to perform.

Properties

Operation

Gets or sets the math operation.

public MathOperation Operation { get; set; }

Property Value

MathOperation

Result

Gets the result.

public double Result { get; }

Property Value

double

Methods

Process()

Processes inputs and updates outputs. Called automatically when any input changes (if auto-execute is enabled).

public override void Process()