If **u** is orthogonal to **v**, then
**u · v** = 0.0

We want: **w** = k**v** + **u**,
with the condition that **u** is orthogonal to **v**.
Using trigonometry:

- The length of k
**v**=**| w |**cos - The orientation of k
**v**is**v**_{u}

Remember that unit vectors are used to represent
orientation in 3D space.
The orientation of **v** is **v _{u}**.
(In the picture, this happens to be horizontal, but that is just for convenience).
Since
cos θ
is

kv= |w| (w)_{u}· v_{u}v_{u}

This formula may look awful, but it is not. This part:

|w| (w)_{u}· v_{u}

is a scalar.
It adjusts **v** to to required length.
In the picture this is the length of the horizontal baby blue line.

The remaining part: **v _{u}**, just says,
"same orientation as