The Angle Determines the Components
When a vector forms an angle with an axis, its components can be found using trigonometry. The idea is simple: the slanted vector becomes the hypotenuse of a right triangle, while its components become the horizontal and vertical sides.
If angle is measured from the positive axis, the horizontal component is adjacent to the angle, while the vertical component is opposite the angle.