This is LaTeX code:
[latex]
d(P_1, P_2)=\frac{|(\overrightarrow{r_2}-\overrightarrow{r_1}, \overrightarrow{s_1}, \overrightarrow{s_2})|}{|\overrightarrow{s_1}x\overrightarrow{s_2}|}
[/latex]