Another example. The distance between (0,0,0) and (1,1,1):

The midpoint is (1/2,1/2,1/2). The line (0,0,0)-(1,1,1) is x = t, y = t, z = t (t real number).