Astronomers use the principle of parallax to measure distances to the closer stars .
Astronomers use the principle of parallax to measure distances to celestial objects including to the Moon , the Sun , and to stars beyond the Solar System .