Added function rot_vec.