magnitude and direction of a vector