What does the rotation of the earth affect?