These functions are used to calculate specific values to emulate the exact Genesis Sonic Physics. These include some Trigonometry and some Hex Angles and some positions. Credit to www.info.sonicretro.org for the original game scripts which I have no idea what language is in. (probably assembly) *This is also for my newer Sonic Games but you can use too! https://info.sonicretro.org/SPG:Calculations This is the web page for the original ones. If you can find out the original language of this, please tell so in the comments.
If there is any errors, please notify me of it and/or fix them in a remix.