Introduce HMM_PowerF()

This commit is contained in:
Matt Mascarenhas
2016-08-31 00:44:14 +01:00
parent 90198604b8
commit 224d543d79

View File

@@ -644,6 +644,18 @@ HMM_Power(float Base, int Exponent)
return (Result);
}
HINLINE float
HMM_PowerF(float Base, float Exponent)
{
if (Base > 0)
{
return expf(Exponent * logf(Base));
}
else
{
return -expf(Exponent * logf(-Base));
}
}
HINLINE float
HMM_Lerp(float A, float Time, float B)