Math
Category Numbers
Is Pair Node: No
Performs various mathematical operations on the input numbers. The operation is determined by the selected math mode, which can include addition, subtraction, multiplication, division, and more. The node can also clamp the result to a specified range if desired.
Math Modes
Section titled “Math Modes”The Math Mode
input allows you to choose the type of mathematical operation to perform on the inputs. The available modes are:
Math Modes
Section titled “Math Modes”Mode | X | Y | Z |
---|---|---|---|
Add | ✅ | ✅ | |
Subtract | ✅ | ✅ | |
Multiply | ✅ | ✅ | |
Divide | ✅ | ✅ | |
Sin | ✅ | ||
Cos | ✅ | ||
Tan | ✅ | ||
Greater Than | ✅ | ✅ | |
Greater Than Or Equal | ✅ | ✅ | |
Less Than | ✅ | ✅ | |
Less Than Or Equal | ✅ | ✅ | |
Compare | ✅ | ✅ | |
Power | ✅ | ✅ | |
Logarithm | ✅ | ✅ | |
Natural Logarithm | ✅ | ||
Root | ✅ | ✅ | |
Inverse Root | ✅ | ||
Fraction | ✅ | ||
Absolute | ✅ | ||
Negate | ✅ | ||
Floor | ✅ | ||
Ceil | ✅ | ||
Round | ✅ | ||
Modulo | ✅ | ✅ | |
Min | ✅ | ✅ | |
Max | ✅ | ✅ | |
Step | ✅ | ✅ | |
SmoothStep | ✅ | ✅ | ✅ |
Inputs
Section titled “Inputs” Type: Double
Default: 0
First operand for the math operation. This is the first number to be used in the calculation.
Type: Double
Default: 0
Second operand for the math operation. This is the second number to be used in the calculation. This is an optional second number to be used in the calculation, depending on the selected math mode.
Type: Double
Default: 0
Third operand for the math operation. This is an optional third number to be used in the calculation, depending on the selected math mode.
Math Mode
Section titled “ Math Mode ” Type: Math Mode (Enum)
Default: Add
The mode of the math operation. This determines how the inputs X, Y, and Z are combined to produce the result.
Clamp
Section titled “ Clamp ” Type: Boolean
Default: false
Whether to clamp the result of the math operation. If true, the result will be clamped to the range of 0 to 1. If false, the result can be any value.
Outputs
Section titled “Outputs” Result
Section titled “ Result ” Type: Double
Default: 0
The result of the math operation based on the selected mode and inputs. This is the final output of the node, which can be used in further calculations or as an input to other nodes.