As you can see, sine and cosine put together can form any point on a circle. (The red line is tangent)
Click 'See inside' and go to the 'click here' sprite to learn the script that draws it. Head to my profile for more awesome projects! @BobDaCoder136