So I'm given the line described by:
$$\begin{cases} x = \frac{2}{3} + \lambda \\ y = \frac{1}{3} + \lambda \\ z = \lambda \end{cases}$$
And I'm asked to determine the point that is closest to the origin. I have the following formula for the distance between a point and a line (using parametric equations) in $\Bbb R^3$:
$$ d(\vec{p}, L) = \frac{\mid (\vec{p} - \vec{q}) \times \vec{r} \mid}{\mid \vec{r} \mid} $$ where $\vec{p}$ is the point and $\vec{x} = \vec{q} + \lambda\vec{r}$ are the parametric equations for the line.
Somehow I think I'm supposed to fill these in and find some sort of function for it, but I'm not really sure. Am I now supposed to calculate this for each $x, y$ and $z$ seperatly? I'm a little confused as I might go on about doing this.