Mark is correct.

However, as you progress in mathematics, you will come to find other ways to define cos and sin which do NOT depend on a right triangle. Nevertheless, it is almost always helpful to remember the relationship between the trig functions and a right triangle.