Answers for "lerp function c++"

C++
0

lerp function c++

float lerp(float a, float b, float t)
{
    return a + (b - a) * t; //This returns a + t percent (t = 0.f is 0% and t = 1.f is 100%) of b
}
Posted by: Guest on May-04-2022

Browse Popular Code Answers by Language