Added Lerp

This commit is contained in:
Zak Strange
2016-03-14 14:26:32 -07:00
parent 41d2f2e5b6
commit 388f66c1af

View File

@@ -306,6 +306,14 @@ Power(float Base, int Exponent)
return (Result); return (Result);
} }
HMMDEF HINLINE float
Lerp(real32 A, real32 B, float Time)
{
real32 Result = (1.0f - Time) * A + Time * B;
return(Result);
}
HMMDEF HINLINE vec2 HMMDEF HINLINE vec2
V2(float X, float Y) V2(float X, float Y)
{ {