This model utilizes the VSOP87 (French acronym of "Secular Variation of the Planet's Orbits 1987") mathematical model of the solar system.
The VSOP formulas take a given Julian Calendar Date value julian and returns the (x,y) coordinate data of each planet. The angle is found using the arctan function.
(x, y) = getplanet ( julian )
angle = arctan ( y / x )
Each planet is then transformed using rotate ( angle ) with the sun as its origin to set it at the correct angle.
In order to animate the model, the revolution speed (e.g. 1 day/s) is taken and divided by the framerate (e.g. 1/60 days/s) and added to the julian date value. The operation is done 60 times every second, so that the date is updated to:
julian = julian + speed
Each planet is updated accordingly, 60 times per second.
Learn more about VSOPCurrently running at 5184000x the speed of Earth's orbit
Every second in model Earth's orbit is 0.1643 Earth-years passing.
Planet | Speed (km/h) |
---|---|
Mercury | 47.87 |
Venus | 35.02 |
Earth | 29.78 |
Mars | 24.077 |
Jupiter | 13.07 |
Saturn | 9.69 |
Uranus | 6.81 |
Neptune | 5.43 |