Storing the cosine of the angle inside the token allows for faster rotation matrix computation. Because the rotation matrix uses the sin/cos of the angle, we can precompute the cosine and find the sine quickly using cosx^2+sinx^2=1. This means we only need to compute the sin/cos once, and we can potentially precompute it at compile time.
gba-fractal-generation
Description
Languages
C++
94.8%
CMake
5.2%