Linear Vector Projection

Linear vector projection for a vector a is the calculation of a new vector p which is parallel to another vector b.

In a two dimensional space, a graphic example is:

Projections can be computed as follows using vectors, vector lengths, angles, and dot products: