## Orbiting About a Point in 2D

We can orbit around a point in 2D by using the trigonometry $cos$ , and $sin$ functions.

If we want to orbit around some point, for example, the origin at point $(0, 0)$, then at some angle $\theta$, and radius $r$, we can compute the point $r$ units away at angle $\theta$ from the origin point:

For any other origin point $O$, then the point will be:

### Notes

This can be useful for:

• Camera (the point radius $r$ away from origin) which orbits around a subject (at origin $O$)

### Demo

Here is a quick demonstration of how the orbit would look like in 2D: