Simple trigonometry