Math f(x)

Evaluates a math expression written in terms of the single variable x, which carries the input value, or X when the input is a Transform.

The result is read as the chosen output type: an Integer rounds to the nearest whole number, a Bool reads exactly 0 or 1 as false or true, a Vec2 takes the X and Y of a vector like 3i + 4j, and a Transform takes a matrix like rotation(pi/4) + 5i. A boolean input reads as 0 or 1 and a Vec2 input as such a vector.

Interface

Inputs

ParameterDetailsPossible Types
Value

The value passed into the expression as x.

Primary Input

Bool[]
Bool
Integer[]
Integer
Number[]
Number
Transform[]
Transform
Vec2[]
Vec2
f(x) =

The expression evaluated for the input value, in terms of x, such as 4sin(x/2), or of X for a Transform.

Default: x

String[]
String
Output Type

The type the result is read as.

Default: 0

Bool[]
Bool
Integer[]
Integer
Number[]
Number
Transform[]
Transform
Vec2[]
Vec2

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

Number
Number[]
Integer
Integer[]
Bool
Bool[]
Vec2
Vec2[]
Transform
Transform[]