Trigonometric Ratio of Any Angle

Drag the point P slowly.