3 ms·
Absolutely. Trigonometric functions are quite slow. Here’s an example on how to implement angles without trigonometric functions: https://gist.github.com/Const-
by Const-me 9y ago
Absolutely. Trigonometric functions are quite slow. Here’s an example on how to implement angles without trigonometric functions:
https://gist.github.com/Const-me/46f90ce7fc2bc65dc12a41442ed51f73 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_rotation https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotati...