I'm new to Vector and 3D Geometry and today I was taught the equation of a line passing through two points $A(\vec{a})$ and $B(\vec{b})$ as $$\vec{r}=\vec{a} + λ(\vec{b}-\vec{a})$$
It is difficult for me to imagine how this works. Why do we have a $λ$ here? What I can think of is that $\vec{r}=\vec{a} + λ(\vec{b}-\vec{a}$) means that if we draw a line passing through $A$ and $B$ and we plug in different values of $λ$, we will get the position vector of different points that lie on that line. Am i right in thinking so? So this is a bit different from the stuff we use in $2D$ geometry or other forms like expressing the line in terms of $x,y,z$?
Here is a visual explanation, for vectors in $\mathbb{R}^2$. The vectors $\vec{a}$ and $\vec{b}$ fix two points in space. Consider the difference $\vec{b}-\vec{a}$ shown by the red arrows. Then, we move a certain number of lengths of $\vec{b}-\vec{a}$ (given in the picture by $\lambda=5$) along the direction of $\vec{b}-\vec{a}$. The resulting vector $\vec{a}+\lambda(\vec{b}-\vec{a})=\vec{a}+5(\vec{b}-\vec{a})$ has its tip on a line that clearly goes through the tips of $\vec{a}$ and $\vec{b}$ and is parallel to $(\vec{b}-\vec{a})$.
In general, $\lambda$ can be anything, so there can be any number of $\vec{b}-\vec{a}$'s, including fractional amounts, added to $\vec{a}$. This traces out the entire line.