plumageRender/3rdparty/glm/gtx/optimum_pow.inl

23 lines
380 B
Plaintext
Raw Normal View History

2023-05-17 14:49:05 +08:00
/// @ref gtx_optimum_pow
namespace glm
{
template<typename genType>
2023-06-07 10:52:04 +08:00
GLM_FUNC_QUALIFIER genType pow2(genType const& x)
2023-05-17 14:49:05 +08:00
{
return x * x;
}
template<typename genType>
2023-06-07 10:52:04 +08:00
GLM_FUNC_QUALIFIER genType pow3(genType const& x)
2023-05-17 14:49:05 +08:00
{
return x * x * x;
}
template<typename genType>
2023-06-07 10:52:04 +08:00
GLM_FUNC_QUALIFIER genType pow4(genType const& x)
2023-05-17 14:49:05 +08:00
{
return (x * x) * (x * x);
}
}//namespace glm