Return value linearly interpolated in between two points. This function is an C++ analogue of GLSL mix function.
constexpr float Mix(const float x, const float y, const float a);
constexpr double Mix(const double x, const double y, const double a);
Vector Mix(const Vector &x, const Vector &y, const float a);
Namespace: | nitisa |
Include: |
Nitisa/Core/Math/Utils.h (For float and double arguments) Nitisa/Core/Math/VectorUtils.h (For Vector arguments) |