summaryrefslogtreecommitdiffstats
path: root/depedencies/include/glm/gtx/optimum_pow.inl
diff options
context:
space:
mode:
Diffstat (limited to 'depedencies/include/glm/gtx/optimum_pow.inl')
-rw-r--r--depedencies/include/glm/gtx/optimum_pow.inl23
1 files changed, 23 insertions, 0 deletions
diff --git a/depedencies/include/glm/gtx/optimum_pow.inl b/depedencies/include/glm/gtx/optimum_pow.inl
new file mode 100644
index 0000000..2216a74
--- /dev/null
+++ b/depedencies/include/glm/gtx/optimum_pow.inl
@@ -0,0 +1,23 @@
+/// @ref gtx_optimum_pow
+/// @file glm/gtx/optimum_pow.inl
+
+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