Convert [X,Y] to degrees

Is this what you need?

An arc tangent will give you the angle of the second point relative to the origin (0,0) — atan(x,y) in most languages. Remember that the returned angle first needs to be converted from radians to degrees.

1 Like