Triangle definition of sine and cosine

Drag the point A to draw the graphs!