This interactive shows \(\vec{r}_{AB}\text{,}\) the displacement vector from \(\vec{A}\) to \(\vec{B}\) and the corresponding unit displacement vector \(\lambda_{AB}\text{.}\)
You may change \(\vec{A}\) and \(\vec{B}\) by moving the red and blue dots. Click the dot to switch between \(x\)-\(y\) mode and \(z\) mode. Coordinates of \(\vec{A}\) and \(\vec{B}\) can also be entered into the table directly.