Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 | Lists | API | Security | Legal | Apply to YC | Contact

Search: