Added Matrix4::Identity(), Added Lerp (scalar.h)

This commit is contained in:
2018-03-19 17:28:31 -07:00
parent 62670af728
commit 1e2c597fb6
4 changed files with 14 additions and 0 deletions

View File

@@ -39,4 +39,9 @@ float SmoothStep(float a, float b, float t)
return a * (1.0f - d) + b * d;
}
float Lerp(float a, float b, float t)
{
return (a + (b - a) * t);
}
} // namespace kraken