This PR implements two improvements, one general and one specific to dir_to_rotation:
Cache math functions into locals for faster access
Replace dir_to_rotation with a faster and more accurate version
This PR implements two improvements, one general and one specific to `dir_to_rotation`:
- Cache math functions into locals for faster access
- Replace dir_to_rotation with a faster and more accurate version
Dit pull-request kan niet worden gemerged omdat er conflicten zijn.
Gelieve beide versies manueel samen te voegen om de conflicten op te lossen.
This PR implements two improvements, one general and one specific to
dir_to_rotation
: