Math

Dot product facts:

V dot V = ||V||2


Dot product of V with a unit vector u is the length of the projection of V onto u