decomposing a vector into components from the length and angle of the vector