By convention, the direction of a vector is measured by the angle the vector makes with the positive x-axis, in the anti-clockwise direction. From the figure, this is $$40^{\circ}$$. This is just a convention, but, it is a convention that we will follow throughout the website.