Finding heights and distances by using trigonometry