atan2

Basic data handling: MathAtan2

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.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (3)

NameTypeRequired
yFLOAT,INTrequired
xFLOAT,INTrequired
unitCOMBOrequired

Outputs (1)

NameType
FLOATFLOAT