ComfyUI Node
atan2
Calculates the arc tangent of y/x, considering the quadrant. This node takes y and x coordinates and returns the arc tangent in radians or degrees. Unlike atan(y/x), this function handles the case where x is zero and correctly determines the quadrant of the resulting angle.
atan2
- y
- x
- FLOAT
◄unitdegrees►
CategoryBasic/maths
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| y | FLOAT,INT | 0 | — |
| x | FLOAT,INT | 0 | — |
| unit | COMBO | degrees | 2 options: radians, degrees |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| FLOAT | FLOAT | — |