Hacker News new | past | comments | ask | show | jobs | submit login

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/46f90ce7fc2bc65dc12a41442ed...




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: