From a8b3118e8305fd1c668ea25e07157b625c9747ff Mon Sep 17 00:00:00 2001 From: Joursoir Date: Sat, 10 Apr 2021 17:29:02 +0000 Subject: add glm headers --- src/include/glm/gtx/optimum_pow.inl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/include/glm/gtx/optimum_pow.inl (limited to 'src/include/glm/gtx/optimum_pow.inl') diff --git a/src/include/glm/gtx/optimum_pow.inl b/src/include/glm/gtx/optimum_pow.inl new file mode 100644 index 0000000..2f7242b --- /dev/null +++ b/src/include/glm/gtx/optimum_pow.inl @@ -0,0 +1,22 @@ +/// @ref gtx_optimum_pow + +namespace glm +{ + template + GLM_FUNC_QUALIFIER genType pow2(genType const& x) + { + return x * x; + } + + template + GLM_FUNC_QUALIFIER genType pow3(genType const& x) + { + return x * x * x; + } + + template + GLM_FUNC_QUALIFIER genType pow4(genType const& x) + { + return (x * x) * (x * x); + } +}//namespace glm -- cgit v1.2.3-18-g5258