Given two points (x1, y1) and (x2, y2), the slope of the line from both points is calculated as follows:

The distance between the points, or the length of the segment that joins both points is given by:
![D=L=\sqrt[]{(x_2-x_1)^2+(y_2-y_1)^2}](https://img.qammunity.org/2023/formulas/mathematics/college/1tdaqn5fd93zgrmlc55njdz2awk6dv5ol2.png)
The coordinates of the midpoint between the given points are:
