Cosine Construction

You can navigate with the blue point on the circle, meanwhile the function will be constructed. The cosine of an angle is the ratio of the length of the adjacent side to the length of the hypotenuse.