Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #lerp #function
ADD COMMENT
Topic
Name
1+9 =