I need to know how to calculate the degree of an angle based on two ordered pairs x1, y1, x2, y2
x1 = 100
y1 = 100
x2 = 300
y2 = 300
How do I calculate the degrees??
Thanks,
Allen
Printable View
I need to know how to calculate the degree of an angle based on two ordered pairs x1, y1, x2, y2
x1 = 100
y1 = 100
x2 = 300
y2 = 300
How do I calculate the degrees??
Thanks,
Allen
Do you want angle a?
If so then you're looking for slope in degrees form.Code:/\

 +
 /
 /
 +_a____
<>


\/
It just so happens that the slope equals the tangent of angle a, so all you need to do is calculate the of the slope.
For instance, your slope is 1, so the angle is: