3 ms·
Implemented a 2D angle class for cases like that, where you would otherwise use these slow trigonometry functions. It’s C++ but should be easy to convert to Jav
by Const-me 9y ago
Implemented a 2D angle class for cases like that, where you would otherwise use these slow trigonometry functions. It’s C++ but should be easy to convert to JavaScript or any other OO language.
https://gist.github.com/Const-me/46f90ce7fc2bc65dc12a41442ed51f73 https://gist.github.com/Const-me/46f90ce7fc2bc65dc12a41442ed...