Use trigonometric ratios in all four quadrants

Use trigonometric ratios in all four quadrants