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.

By StableLlama·Created about a year ago·Updated 25 days ago· 45
atan2
  • y
  • x
  • FLOAT
unitdegrees
CategoryBasic/maths

Inputs (3)

NameTypeDefaultDescription
yFLOAT,INT0
xFLOAT,INT0
unitCOMBOdegrees2 options: radians, degrees

Outputs (1)

NameTypeDescription
FLOATFLOAT