Where does the sine function come from?

Below is a unit circle. First drag the point to see the relationship between the angle, the sides of the triangle, the unit circle and the sine ratio. Then click the checkbox to turn on tracing and see how this relates to graphing the function f(x)=sin(x).