Measuring the Distances of Celestial Bodies Using Trigonometry