mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
![Leon Styhre](/assets/img/avatar_default.png)
git-subtree-dir: external/glm git-subtree-split: bf71a834948186f4097caa076cd2663c69a10e1e
17 lines
617 B
C++
17 lines
617 B
C++
#include "../matrix.hpp"
|
|
|
|
namespace glm
|
|
{
|
|
template<length_t C, length_t R, typename T, typename U, qualifier Q>
|
|
GLM_FUNC_QUALIFIER mat<C, R, T, Q> mix(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y, U a)
|
|
{
|
|
return mat<C, R, U, Q>(x) * (static_cast<U>(1) - a) + mat<C, R, U, Q>(y) * a;
|
|
}
|
|
|
|
template<length_t C, length_t R, typename T, typename U, qualifier Q>
|
|
GLM_FUNC_QUALIFIER mat<C, R, T, Q> mix(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y, mat<C, R, U, Q> const& a)
|
|
{
|
|
return matrixCompMult(mat<C, R, U, Q>(x), static_cast<U>(1) - a) + matrixCompMult(mat<C, R, U, Q>(y), a);
|
|
}
|
|
}//namespace glm
|