News for hackers. Stuff that matters.
Re:Sin and Cos: The Programmer's Pals by Const-me on Tuesday March 06, 2018 @11:15AM (#16529733)
Absolutely. Trigonometric functions are quite slow. Here’s an example on how to implement angles without trigonometric functions: https://gist.github.com/Const-me/46f90ce7fc2bc65dc12a41442ed...

And for cases when you need to multiply angles by a scalar (e.g. to interpolate between two angles), quaternions is the way to go: https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotati...

There are no comments on this comment yet.