Simulation of three "planets" traveling around a "sun" with constant speeds and perfectly circular orbits.

Any time planets are co-linear, program stores their timestamp. Co-linearity is calculated using Heron's formula.

You can pass initial parameters via the url, like this: https://sptth.xyz/planets.html?p1r=3&p2r=4&p3r=5&p1p=3&p2p=-4&p3p=5

Return