A vector can in general be written , where is a unit vector (has unit length) in the direction of , and is the magnitude of the vector. So a vector can be written : it therefore has magnitude .