3 ms·
> There is a chance he could get away with precomputing an atan2(x) table in memory and then just reading the values off the table. Quick as lightning, and an o
by arc776 9y ago
> There is a chance he could get away with precomputing an atan2(x) table in memory and then just reading the values off the table.
Quick as lightning, and an old trick, probably invented in the 1950s!!
I actually tried this for cos and sin lookups, and lerping between datapoints.
It was actually slower than the builtins!