Let in a 2D problem you are given with slopes of two lines say (m1 & m2).
Now, how should I know what the angle between the two lines is?
I tried like this:
from math import atan
from math import degrees
from operator import abs
if 1+m1*m2:
alpha = degrees(atan(abs((m1-m2)/(1+m1*m2)))
print(alpha)
else:
print(90)
Now, The problem is how to know which angle the code is going to print
Whether it is going to be alpha or beta It also prints -ve angle also?
While I only want alpha & I'll keep varying point D in +ve quadrant.