ProtoFlux:Atan2

From Resonite Wiki
Atan2
Y
*
X
Trigonometry

The Atan2 node returns the 2-argument arctangent of the point with the input X and Y coordinates. The output value is the angle between the positive x axis and the point in the Cartesian coordinate system.

The output value is in radians. If you want a value in degrees, multiply by the Rad 2 Deg node.

Variants

There are many variants of this node. The simplest take 2 scalar numeric-typed values. Some more complicated variants take one scalar and one vector or two same-sized vectors. In each case, the output has the same dimensions as the highest dimension input. Values are calculated element-wise, for example:

If the input Y is 1 and input X is [2;3] the output will be [Atan2(1,2);Atan2(1,3)].

Similarly if the input Y is [1;2] and the input X is [3;4] the output will be [Atan2(1,3);Atan2(2,4)].

Inputs

Y (Pseudo-Generic)

Input Y coordinate value.

X (Pseudo-Generic)

Input X coordinate value.

Outputs

* (Pseudo-Generic)

2-argument arctangent of Y and X.

Further Reading

Videos