I have a little problem (more of a math than a programming problem :-).
I draw a line using the following code:
Now I want to calculate the angle of the line, for example if my Mouse Coordinates are (320,100) it should return 0°, if they are (500,240) it should return 90° and so on...
I'm sure someone can help me... ;)
I draw a line using the following code:
Line 320,240,MouseX(),MouseY()
Now I want to calculate the angle of the line, for example if my Mouse Coordinates are (320,100) it should return 0°, if they are (500,240) it should return 90° and so on...
I'm sure someone can help me... ;)