Generating Sine and Cosine from the Circle

Drag point A around the circle, observe the plot.