Definition of the diurnal parallax are the parallax of a celestial body using two points on the surface of the earth as the earth rotates .