| 1.0.2 API documentation

optimum_pow.hpp
Go to the documentation of this file.
1
13 #pragma once
14
15 // Dependency:
16 #include "../glm.hpp"
17
18 #ifndef GLM_ENABLE_EXPERIMENTAL
19 # error "GLM: GLM_GTX_optimum_pow is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
20 #elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
21 # pragma message("GLM: GLM_GTX_optimum_pow extension included")
22 #endif
23
24 namespace glm
25 {
28
32 template<typename genType>
33 GLM_FUNC_DECL genType pow2(genType const& x);
34
38 template<typename genType>
39 GLM_FUNC_DECL genType pow3(genType const& x);
40
44 template<typename genType>
45 GLM_FUNC_DECL genType pow4(genType const& x);
46
48 }//namespace glm
49
50 #include "optimum_pow.inl"
glm::pow4
GLM_FUNC_DECL genType pow4(genType const &x)
Returns x raised to the power of 4.
glm::pow2
GLM_FUNC_DECL genType pow2(genType const &x)
Returns x raised to the power of 2.
glm::pow3
GLM_FUNC_DECL genType pow3(genType const &x)
Returns x raised to the power of 3.