I needed to make these scripts for my ongoing project, SweatFit (Check it out here: @SweatFit) And I decided to make it public, along with a cool demo of what exactly it does. The script uses trigonometry to calculate the rotation around a specific point. In this simulation, you can drag the sun around or change the distance to see how it works. Thanks to my Geometry teacher, I guess. I came up with the equations myself.