Let's say I have a vector $u$, whose magnitude (L2-norm) is $|u|$ and whose direction is $\frac{u}{|u|}$. I have another vector $v$, whose magnitude and direction are both different to that of $u$. So, $|v| \neq |u|$ and $\frac{v}{|v|} \neq \frac{u}{|u|}$.
What I want to do, is create a new vector $w$ whose magnitude is equal to that of $u$, but whose direction is equal to that of $v$. So this can be thought of as taking vector $v$, and changing its magnitude such that the magnitude is equal to $|u|$.
This seems quite trivial, but I cannot work it out! Any help please?
$$w = |u|\frac{v}{|v|}{}{}{}$$