Houdini 20.0 Nodes APEX Nodes

Atan2

Computes the inverse tangent of y/x.

On this page
Since 20.0

Returns the inverse tangent of y/x, using the signs of x and y to determine the quadrant of the result. The result value is in the range -π to π.

Given a point (x, y) in the plane, the result corresponds to the angle, in radians, between the positive x-axis and the ray connecting the origin to the point (x, y). Positive angles are returned for test points in quadrants I and II, while negative angles are returned for test points in quadrants III and IV.

Inputs

x: Float

The x coordinate of the test point.

y: Float

The y coordinate of the test point.

Outputs

result: Float

The angle, in radians, representing the inverse tangent of y/x. The angle in the range -π to π.

See also

APEX Nodes