Write the vector in component form given the magnitude and direction