Scales vector by a number.