Nodes in this category perform discontinuous numeric operations such as rounding, clamping, mapping, and randomization.
Nodes
| Node | Details | Possible Types |
|---|---|---|
| Absolute Value | The absolute value function ( With a vec2 input, this applies separately to the X and Y components. For the overall length of a vec2, see the "Magnitude" node instead. | Number → NumberNumber[] → Number[]Integer → IntegerInteger[] → Integer[]Vec2 → Vec2Vec2[] → Vec2[] |
| Average | Averages all the numbers in the input list. An empty list gives 0. | Number[] → Number |
| Ceiling | The ceiling function ( With a vec2 input, this applies separately to the X and Y components. | Number → NumberNumber[] → Number[]Vec2 → Vec2Vec2[] → Vec2[] |
| Clamp | The clamp function ( With vec2 inputs, this applies separately to the X and Y components. | Number → NumberNumber[] → Number[]Integer → IntegerInteger[] → Integer[]String → StringString[] → String[]Vec2 → Vec2Vec2[] → Vec2[]Number → Vec2Number[] → Vec2[] |
| Floor | The floor function ( With a vec2 input, this applies separately to the X and Y components. | Number → NumberNumber[] → Number[]Vec2 → Vec2Vec2[] → Vec2[] |
| Greatest Common Divisor | The greatest common divisor (GCD) calculates the largest positive integer that divides both of the two input numbers without leaving a remainder. | Integer → IntegerInteger[] → Integer[] |
| Least Common Multiple | The least common multiple (LCM) calculates the smallest positive integer that is a multiple of both of the two input numbers. | Integer → IntegerInteger[] → Integer[] |
| Lerp | Linearly interpolates between the start and end values, where a factor of 0 gives the start value, 1 gives the end value, and 0.5 gives their midpoint. With vec2 inputs, this traces the straight line path between the two points. | Number → NumberNumber[] → Number[]Vec2 → Vec2Vec2[] → Vec2[] |
| Max | The maximum function ( With vec2 inputs, this applies separately to the X and Y components. | Number → NumberNumber[] → Number[]Integer → IntegerInteger[] → Integer[]String → StringString[] → String[]Vec2 → Vec2Vec2[] → Vec2[]Number → Vec2Number[] → Vec2[] |
| Maximum | Gives the largest number in the input list. An empty list gives 0. | Number[] → Number |
| Min | The minimum function ( With vec2 inputs, this applies separately to the X and Y components. | Number → NumberNumber[] → Number[]Integer → IntegerInteger[] → Integer[]String → StringString[] → String[]Vec2 → Vec2Vec2[] → Vec2[]Number → Vec2Number[] → Vec2[] |
| Minimum | Gives the smallest number in the input list. An empty list gives 0. | Number[] → Number |
| Random | The random function ( | → Number → Number[] |
| Remap | Linearly maps an input value from one range to another. The ranges may be reversed. For example, 0.5 in the input range | Number → NumberNumber[] → Number[] |
| Round | The rounding function ( With a vec2 input, this applies separately to the X and Y components. | Number → NumberNumber[] → Number[]Vec2 → Vec2Vec2[] → Vec2[] |
| Sign | The sign function ( With a vec2 input, this applies separately to the X and Y components. | Number → NumberNumber[] → Number[]Vec2 → Vec2Vec2[] → Vec2[] |
| Sum | Adds together all the numbers in the input list, producing their total. | Number[] → Number |