LERP

// Between a and b, using steps of 'f' size
float lerp(float a, float b, float f)
{
    return a + f * (b - a);
}

// From http://stackoverflow.com/questions/4353525/floating-point-linear-interpolation

WordPress Pastebin plugin

About James

If this were the 80s I'd be sat in front of a C64 or Speccy, or taking VCRs apart.