In this universe lets say everything exists in a 2d plane. There exists a 2d planet and hurdling towards it (at some velocity), is a 2d asteroid. Luckily, the asteroid isn't going to collide with the planet, however, the asteroid is going to get caught by the planets gravity and begin orbiting the planet.
Given 3 variables:
- Magnitude of the asteroid
- Position of the asteroid (in x, y coordinates)
- Position of the planet (in x, y, coordinates)
How can I determine if the asteroid will orbit clockwise or counter-clockwise?
Here are examples of the asteroid approaching the planet and the direction they would orbit.
