4 ms·
This is a fine introduction to how you even approach the problem of computing transcendental functions. It would have been nice to have some discussion of accu
by mistercow 3y ago
This is a fine introduction to how you even approach the problem of computing transcendental functions.
It would have been nice to have some discussion of accuracy requirements rather than just eyeballing it and saying “more accuracy than I need”. This is a spot where inexperienced devs can easily get tangled up. An attitude like “ten digits? That’s so many! I’m only making a game, after all” is exactly the sort of thing that gets you into trouble if you start accumulating errors over time, and this is particularly easy to do with trig functions.