Go to: Related nodes. Attributes.

This node outputs the arc tangent value of its inputs. It computes the unambiguous value for the angle a in converting from Cartesian coordinates (x, y) to polar coordinates (r, a) where x = r * cos(a), y = r * sin(a) and r^2 = x^2 + y^2

Node nameParentsClassificationMFn typeCompatible function sets
atan2nodemath:utility/scalar:drawdb/shader/operation/atan2kATan2kBase
kNamedObject
kDependencyNode
kATan2

Related nodes

sin, cos, tan, asin, acos, atan, atan2DL

Attributes (3)

input1, input2, output

Long name (short name)TypeDefaultFlags
input1 (i1) double0.0outputinputconnectablestorablekeyable
The x value used for computing the angle.
input2 (i2) double0.0outputinputconnectablestorablekeyable
The y value used for computing the angle.
output (o) angle (double)0.0degoutputconnectable
The angle for which x = r * cos(a), y = r * sin(a) and r^2 = x^2 + y^2 is true