Cos and Sin are your basic trigonometric functions
If you have a line going from (0,0) to a point (x,y), which is a distance [itex]r=\sqrt{x^2+y^2}[/itex] from the center, then the angle between the horizontal line and the line from (0,0) to (x,y) is related to the components a and b by;
[itex]Cos[\theta]=\frac{x}{r}[/itex]
[itex]Sin[\theta]=\frac{y}{r}[/itex]
There is also a function, Tan which is related to Cos and Sin by
[itex]Tan[\theta]=\frac{Sin[\theta]}{Cos[\theta]}[/itex]
If we use the definitions earlier of the relations between Cos and Sin, and and compoents a,b we get
[itex]Tan[\theta]=\frac{y}{x}[/itex]
If you measure the angle [itex]\theta[/itex] from the horizontal then [itex]r\ Cos[\theta][/itex] gives you the x component of a vector of length r and at an angle [itex]\theta[/itex] to the horizontal. [itex]r\ Sin[\theta][/itex] gives you the y component.
The trig functions are most easily understood as being projections onto the coordinate axes (imo)
What is it, in particular, that you're having trouble with in understanding the trig functions?