With line l through points P=(x1,y1,z1), Q=(x2,y2,z2) x=x1+(x2−x1)t y=x1+(y2−y1)t z=z1+(z2−z1)t