origin with these two points form right triangle which has legs , parallel to , with say horizontal and vertical
basic idea: if a right triangle has legs , parallel to axes, with say vertical, and you that right triangle by degrees counterclockwise, the new triangle will have vertical side and horizontal side .
Slope of first triangle's hypotenuse is .
Slope of new triangle's hypotenuse is .
Those hypotenuses are , because of the degree rotation, and the of their slopes is: