If only b is a unit vector , then the dot product a Â b gives a cos ( Î ) , i.e. , the magnitude of the projection of a in the direction of b , with a minus sign if the direction is opposite .
If only is a unit vector , then the dot product gives , i.e. , the magnitude of the projection of in the direction of , with a minus sign if the direction is opposite .