The projection of v onto u, where u and v are both vectors in the same dimension euclidean vector space is as follows:

proju(v) =

(u v)
------------ u
|u|2

or assuming u is a unit vector...

(uv) u

The resulting vector will be a scalar multiple of u.
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.