Assume I have two points:
p1 = x1, y1
p2 = x2, y2
I need to determine the DIRECTION/bearing (in degrees) of point p2 from point p1. (The answer will of course be between 0 and 360).
for example, if p1 = 0,0 and p2 = 5,5, it would be 45 degrees (Er, I think hehe).
Anyway, help is appreciated. Psuedocode (java or c) would be helpful rather than just a bunch of theory.