Worked example
Lines pass through (0,0,0) along (1,0,0) and (0,1,2) along (0,1,0). Find their shortest separation.
Worked solution
- Method and reasoningLook for a connection perpendicular to both direction vectors and verify its endpoints lie on the lines.
- The common perpendicular is parallel to z.
- Points (0,0,0) and (0,0,2) lie on the two lines, so separation is 2.
- No smaller distance can cancel their fixed z offset.