Calculate the length and the coordinates of the midpoint of a straight line from the coordinates of its end points.