maths/fast: add minimal explanation of estrin function

This commit is contained in:
Danny Robson 2021-05-12 15:29:12 +10:00
parent 15ee2f5f58
commit 41f444a943

View File

@ -12,6 +12,8 @@
#include "../debug/assert.hpp"
namespace cruft::maths::fast {
// computes: a + t * b + t^2 * c + t^3 * d, but hopefully a little more
// efficiently than typing out the above directly.
constexpr float
estrin (float t, float a, float b, float c, float d)
{