Tag Archives: mathematics

Pure functions in C/C++

Introduction Functions that only depend on their parameters and not on any global state are usually called pure functions. An example of a non-pure function is this: This function is a corner case. It doesn’t depend on the parameters at … Continue reading

Posted in Uncategorized | Tagged , , , , , , | 6 Comments

n-dimensional interpolation

In the course of writing a perlin noise class which takes the dimension as a template parameter, I was in need of a function which interpolates in n dimensions. Generally speaking, interpolation is the process of “guessing” of a function … Continue reading

Posted in Uncategorized | Tagged , , , | 2 Comments