Node: Math
Jump to navigation
Jump to search
The Math node allows you to perform arithmetic operations with one or more input Numbers. You can perform operations on lists of numbers to produce a new list of numbers reflecting the result of the operation on each item in the original list. Some operations only use the x
input, while some use both x
and y
inputs.
Supported Operations
Operation | Result |
---|---|
Add | x + y
|
Subtract | x - y
|
Multiply | x • y
|
Divide | x ÷ y
|
Modulo (Remainder of Division) | x % y
|
Sine | sin(x)
|
Cosine | cos(x)
|
Tangent | tan(x)
|
Arc Sine | asin(x)
|
Arc Cosine | acos(x)
|
Arc Tangent | atan(x)
|
Hyperbolic Sine | sinh(x)
|
Hyperbolic Cosine | cosh(x)
|
Hyperbolic Tangent | tanh(x)
|
Raise to Power | xy
|
Root | y root of x
|
Hypotenuse | sqrt(x2 + y2)
|
Absolute Value | abs(x)
|
Settings
Expected Type | Details | Default | |
---|---|---|---|
x
|
Number or List<Number> | The x value in the arithmetic operation. See Supported Operations for a list of operations.
|
|
Operation | The operation that will be performed by this node. | Add x + y
| |
Angle Mode | The way angles should be interpreted for operations like Sine, Arc Sine, and others. Options are Degrees (360°) , Radians (2π) , or Patricks (2π) . This settings does not effect operations that do not take or return an angle.
|
Degrees (360°)
| |
y
|
Number or List<Number> | The y value in the arithmetic operation. See Supported Operations for a list of operations.
|
Parameters
Type | Details | |
---|---|---|
output
|
Number or List<Number> | Note: The parameter is read-only. The arithmetic output of the provided Numbers or List of Numbers. If only a single item was provided, this will be a single item, otherwise it is a list. |
Functions
There are no functions exposed by this node.
Example Usage
No examples provided.
Nodes | |
---|---|
Devices | ArtNet Input · ArtNet Output · Interactive LED Processor · NDI™ Input · NDI™ Output · OSC Input · OSC Output · Projector · SensorLink · TCP · TUIO Output · UDP Input · UDP Output · Watchout Media Server |
Objects | LED Tile Layout · List · Map · Random Number · Simulated Touch · Timer · Value · Wave |
Operators | Blend · Change · Clip · Cluster Tracker · DMX Multiverse Merge · Ease · Filter · Hold · JSON Mapper · JSON Stringify · Logic · Math · Proximity · Range · Rotate · Scale · Shear · Smooth · Touch Mapper · Translate |
Scenes | External Scene · Material Scene |
Materials | Graph · Touch Material |
Scripting | Script Function · Script |
Comments | Comment |