Correcting myself, swapping x and y axes does not work, of course. Adding 90 degrees to angle as currently calculated does.
Correcting myself, swapping x and y axes does not work, of course. Adding 90 degrees to angle as currently calculated does.