Example (shortest distance between two lines)
For two lines $$\begin{align*} L_1: && (\vec x-\vec a_1)\times\vec t_1 &= \vec 0 \\ L_2: && (\vec x-\vec a_2)\times\vec t_2 &= \vec 0, \end{align*}$$ the distance of closest approach is along the line perpendicular to both $L_1$ and $L_2$, i.e. parallel to $\vec t_1\times\vec t_2$.
So the distance is projecting $\vec a_1-\vec a_2$ along $\vec t_1\times\vec t_2$, $$ s = \Big|\frac{(\vec a_1-\vec a_2)\cdot(\vec t_1\times\vec t_2)}{|\vec t_1\times\vec t_2|}\Big|. $$
A necessary condition for two lines to intersection is $s=0$ that is $(\vec a_1-\vec a_2)\cdot(\vec t_1\times\vec t_2) = 0$.