Where is the Sun?
Earth’s tilted axis changes the Sun’s apparent position. We compute solar altitude and bearing using latitude, day of year and apparent solar time.
The simulation uses the day number n, and the Earth–Sun hour angle of 15° per solar hour.