The scalar projection of a vector onto a nonzero vector
is the signed length
It equals ,
where
is the angle from
to
. In contrast, the vector
projection is a vector in the direction of
and is obtained by multiplying the scalar projection by
.