#4745 - Alunze - Tue Apr 08, 2003 12:46 pm
I've got this problem: I have 2 points on screen; then, if I were to draw a line from the first point to the second, how could I obtain the angle (inclination) of that line, preferably in a quick way?
I thought of calculating it using arctan (the line would be the hypotenuse, the x and y differences would be the other 2 sides of the triangle), but tan values vary way too much to be included in a table, and for some values, tan is +/- infinite. Os maybe I am wrong, I was never that good on trygonometry...
Thanks in *Advance* >_6
I thought of calculating it using arctan (the line would be the hypotenuse, the x and y differences would be the other 2 sides of the triangle), but tan values vary way too much to be included in a table, and for some values, tan is +/- infinite. Os maybe I am wrong, I was never that good on trygonometry...
Thanks in *Advance* >_6