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."
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
23 # pragma message("GLM: GLM_GTX_optimum_pow extension included")
35 template<
typename genType>
36 GLM_FUNC_DECL genType
pow2(genType
const & x);
41 template<
typename genType>
42 GLM_FUNC_DECL genType
pow3(genType
const & x);
47 template<
typename genType>
48 GLM_FUNC_DECL genType
pow4(genType
const & x);
54 #include "optimum_pow.inl"
GLM_FUNC_DECL genType pow4(genType const &x)
Returns x raised to the power of 4.
GLM_FUNC_DECL genType pow2(genType const &x)
Returns x raised to the power of 2.
GLM_FUNC_DECL genType pow3(genType const &x)
Returns x raised to the power of 3.