// 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
LERP
– March 16, 2011Posted in:
// 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