Parameters & Returns
Parameters
Returns
Quick Summary
Returns the angle from the X-axis to a point (Y, X) in degrees.
Takes y (Y coordinate), x (X coordinate).
Returns the angle in degrees.
Technical Exegesis...
Calculates the angle in degrees from the positive X-axis to the point (x, y). The result is returned in degrees, not radians.
Returns an angle between -180 and 180 degrees, covering all four quadrants. This is the preferred function for converting Cartesian coordinates to angles, as it handles all cases correctly including when x is zero.
Note: The parameter order is (y, x), not (x, y).