Xojo.Math.ATan2

From Xojo Documentation

Method

Xojo.Math.ATan2(y As Double, x As Double) As Double

Supported for all project types and targets.

Returns the arctangent of the point whose coordinates are x and y. The arctangent is an angle from the x-axis to a line drawn through the origin (0, 0) and a point with coordinates x, y.