Formula
$$k= \tan \alpha = \dfrac{y_2-y_1}{x_2-x_2}$$
Variables
A(x2,y2)
→
Point on a line
B(x2,y2)
→
Point on a line
α
→
Angle betwen a line and the positive part of x axis.