User Manual

Table Of Contents
Mathematical Operators
!x 1.0 if x = 0, otherwise 0.0
-x (0.0 - x)
+x (0.0 + x) i.e. effectively does nothing
x ^ y x raised to the power of y
x * y x multiplied by y
x / y x divided by y
x % y x modulo y, i.e. remainder of (x divided by y)
x + y x plus y
x - y x minus y
x < y 1.0 if x is less than y, otherwise 0.0
x > y 1.0 if x is greater than y, otherwise 0.0
x <= y 1.0 if x is less than or equal to y, otherwise 0.0
x >= y 1.0 if x is greater than or equal to y, otherwise 0.0
x = y 1.0 if x is exactly equal to y, otherwise 0.0
x == y 1.0 if x is exactly equal to y, otherwise 0.0, identical to above
x <> y 1.0 if x is not equal to y, otherwise 0.0
x != y 1.0 if x is not equal to y, otherwise 0.0, i.e. identical to above
x & y 1.0 if both x and y are not 0.0, otherwise 0.0
x && y 1.0 if both x and y are not 0.0, otherwise 0.0, i.e. identical to above
x|y 1.0 if either x or y (or both) are not 0.0, otherwise 0.0
x||y 1.0 if either x or y (or both) are not 0.0, otherwise 0.0
Example
The following examples are intended to help you understand the various components
of the Custom Tool node.
Rotation
To rotate an image, we need the standard equations for 2D rotation:
x’ = x * cos(theta) - y * sin(theta) y’ = x * sin(theta) + y *
cos(theta)
Chapter – 100 Miscellaneous Nodes 2216