Easing functions implemented in C++