Just divide by its magnitude:
So a unit vector in the direction of is
Then multiply this by -1 to get a unit vector pointing in the opposite direction.
6.6m questions
8.8m answers