diff options
Diffstat (limited to 'src/include/glm/gtx/optimum_pow.inl')
-rw-r--r-- | src/include/glm/gtx/optimum_pow.inl | 22 |
1 files changed, 22 insertions, 0 deletions
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<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
|