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
O merge deste Pull Request não pode ser aplicado automaticamente pois há conflitos.
Por favor, aplique o merge manualmente para resolver os conflitos.
This PR implements two improvements, one general and one specific to
dir_to_rotation
: