mirror of
https://github.com/HandmadeMath/HandmadeMath.git
synced 2025-09-06 18:28:16 +00:00
Added Lerp
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user