vector in component form given magnitude and direction