mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 16:15:39 +00:00
0116f4b65d
git-subtree-dir: external/glm git-subtree-split: bf71a834948186f4097caa076cd2663c69a10e1e
24 lines
569 B
C++
24 lines
569 B
C++
/// @ref gtx_transform
|
|
|
|
namespace glm
|
|
{
|
|
template<typename T, qualifier Q>
|
|
GLM_FUNC_QUALIFIER mat<4, 4, T, Q> translate(vec<3, T, Q> const& v)
|
|
{
|
|
return translate(mat<4, 4, T, Q>(static_cast<T>(1)), v);
|
|
}
|
|
|
|
template<typename T, qualifier Q>
|
|
GLM_FUNC_QUALIFIER mat<4, 4, T, Q> rotate(T angle, vec<3, T, Q> const& v)
|
|
{
|
|
return rotate(mat<4, 4, T, Q>(static_cast<T>(1)), angle, v);
|
|
}
|
|
|
|
template<typename T, qualifier Q>
|
|
GLM_FUNC_QUALIFIER mat<4, 4, T, Q> scale(vec<3, T, Q> const& v)
|
|
{
|
|
return scale(mat<4, 4, T, Q>(static_cast<T>(1)), v);
|
|
}
|
|
|
|
}//namespace glm
|