While doing some refactoring I’ve found that I’m quite often using a pair or floats to represent an initial value and how much this value linearly varies over time. I want to create a struct to hold both fields but I just can’t find the right name for it.
It should look something like this:
struct XXX
{
float Value;
float Slope; // or Delta? or Variation?
}
Any suggestions will be much appreciated.
Since you have an initial value, and a value indicating how ‘something’ evolves, you could go with something like “Linear Function”.
I would also add the necessary member functions:
Or am I to eager here?