I have two points, (x1,y1) and (x2,y2), that I'd like to draw a line between. I know I can figure out the angle of that line using Sin(th)=opp/Hyp:
theta = arcsin((y1-y2)/sqrt((y1-y2)^2 + (x1-x2)^2))) *180/pi
or by using arctangent and the slope:
theta = arctan((y2-y1)/(x2-x1)) * 180/pi
However, I want to convert that angle to be on the scale of [0,360]. Basically, I want my angle to be on a compass scale in which "North" is 0 deg, "East" is 90 deg, "South" is 180 deg, and "West" is 270 deg .
Thanks!!


Multiply your formula result with $180/\pi$ to obtain counterclockwise angle with respect to East-West Line, following the sign convention for direction of vector placement in all four quadrants.