37  return t*t*(3.0f - 2.0f*t);
 
   46  return t*t*t*(10.0f + 3.0f*t*(2.0f*t - 5.0f));
 
   56const float lerp(
float t, 
float a, 
float b){
 
   67const float clamp(
float a, 
float x, 
float b){
 
   68  return std::max(a, std::min(x, b));
 
   95  return n != 0 && (n & (n - 1)) == 0;
 
const float lerp(float t, float a, float b)
Linear interpolation.
 
const float spline5(float t)
Quintic spline.
 
const bool isPowerOf2(size_t n)
Power of 2 test.
 
const float spline3(float t)
Cubic spline.
 
std::wstring to_wstring_f(float x, size_t n)
Float to fixed precision wstring.
 
const float clamp(float a, float x, float b)
Clamp between two values.
 
Interface for helper functions.