The coordinates \(x$$ and \(y$$ of points A and B represent the x- and y-axis coordinates, respectively:
$$A(x_1, y_1)$$ $$B(x_2, y_2)$$
$$\overrightarrow{AB}=(X;Y)=(x_2-x_1;y_2-y_1)$$
$$\left |\overrightarrow{AB} \right |=\sqrt{X^{2}+Y^{2}}=\sqrt{\left (x_2-x_1 \right )^{2}+\left (y_2-y_1 \right )^{2}}$$
$$M\left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right)$$
$$\vec{a} \pm \vec{b} = (X_1 \pm X_2, Y_1 \pm Y_2)$$
$$c\vec{a}=(cX;cY)$$
$$\vec{a}\cdot \vec{b}=X_1X_2+Y_1Y_2$$
$$\cos(\alpha) = \frac{\vec{a} \cdot \vec{b}}{|\vec{a}| \cdot |\vec{b}|}=\frac{X_1 \cdot X_2 + Y_1 \cdot Y_2}{\sqrt{X_1^2 + Y_1^2} \cdot \sqrt{X_2^2 + Y_2^2}}$$
$$\vec{a} \times \vec{b} = X_1 \cdot Y_2 - Y_1 \cdot X_2 = 0$$
$$\frac{X_1}{X_2} = -\frac{Y_1}{Y_2}$$