maths/fast: add minimal explanation of estrin
function
This commit is contained in:
parent
15ee2f5f58
commit
41f444a943
@ -12,6 +12,8 @@
|
|||||||
#include "../debug/assert.hpp"
|
#include "../debug/assert.hpp"
|
||||||
|
|
||||||
namespace cruft::maths::fast {
|
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
|
constexpr float
|
||||||
estrin (float t, float a, float b, float c, float d)
|
estrin (float t, float a, float b, float c, float d)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user