Arc Tangent 2 node
Access: Nodes > Math > Arc Tangent 2
The two-argument arc tangent. Returns the arc tangent of A/B per channel using the signs of both inputs to determine the correct quadrant. This node is helpful in creating radial or conical gradients, which work well for use cases such as iris patterns or vinyl record grooves.
| Input A | Input B | Output |
| 1.0, 1.0, 1.0 | 0.0, 0.0, 0.0 | 1.5708, 1.5708, 1.5708 |
| 1.0, 1.0, 1.0 | 1.0, 1.0, 1.0 | 0.7854, 0.7854, 0.7854 |
| 0.0, 0.0, 0.0 | -1.0, -1.0, -1.0 | 3.14159, 3.14159, 3.14159 |
Arc Tangent 2 node inputs
|
Input A |
The numerator (Y coordinate component). |
| Input B | The denominator (X coordinate component). |
Arc Tangent 2 node outputs
|
Output |
Returns the angle of the vector (B, A) in radians, measured from the positive X axis. Output is in the range of −π to +π, so it can distinguish all four quadrants. |