diff options
Diffstat (limited to '3rdparty/glm/source/glm/gtx/optimum_pow.inl')
-rw-r--r-- | 3rdparty/glm/source/glm/gtx/optimum_pow.inl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/3rdparty/glm/source/glm/gtx/optimum_pow.inl b/3rdparty/glm/source/glm/gtx/optimum_pow.inl new file mode 100644 index 0000000..a26c19c --- /dev/null +++ b/3rdparty/glm/source/glm/gtx/optimum_pow.inl @@ -0,0 +1,22 @@ +/// @ref gtx_optimum_pow + +namespace glm +{ + template<typename genType> + GLM_FUNC_QUALIFIER genType pow2(genType const& x) + { + return x * x; + } + + template<typename genType> + GLM_FUNC_QUALIFIER genType pow3(genType const& x) + { + return x * x * x; + } + + template<typename genType> + GLM_FUNC_QUALIFIER genType pow4(genType const& x) + { + return (x * x) * (x * x); + } +}//namespace glm |