ATan2
Angle of the vector (x,y), in degrees.
ATan2 ( y#,x# )
Parameters
- y#
- how far the direction goes in y.
- x#
- how far it goes in x.
Description
Gives back the angle of a direction, from the change in y and the change in x: the angle from one point to another is ATan2(y2 - y1, x2 - x1). Unlike ATan, it knows which way round the direction points, so the answer covers the whole circle, from -180 to 180 degrees. Note that y comes first.
