the length of the line between two points $(x_1,y_1) \mbox{ and } (x_2,y_2)$ is given by:
$L = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}$