math module · Scalar Function

math::atan2

Compute the two-argument arctangent, returning the angle in radians between the positive x-axis and the point (x, y).

Syntax

RQL

Parameters

NameTypeDescription
yNumberThe y-coordinate
xNumberThe x-coordinate

Return Value

Returns a Number representing the angle in radians.

Examples

$ Calculate two-argument arctangent
$ ctrl+enter to run

Related Functions