0.9.9 API documentation: optimum_pow.hpp Source File

| 0.9.9 API documentation

- Main Page
- Modules
- Files

- File List

optimum_pow.hpp
Go to the documentation of this file.
1
13 #pragma once
14
15 // Dependency:
16 #include "../glm.hpp"
17
18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
19 # ifndef GLM_ENABLE_EXPERIMENTAL
20 # pragma message("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.")
21 # else
22 # pragma message("GLM: GLM_GTX_optimum_pow extension included")
23 # endif
24 #endif
25
26 namespace glm{
27 namespace gtx
28 {
31
35 template<typename genType>
36 GLM_FUNC_DECL genType pow2(genType const& x);
37
41 template<typename genType>
42 GLM_FUNC_DECL genType pow3(genType const& x);
43
47 template<typename genType>
48 GLM_FUNC_DECL genType pow4(genType const& x);
49
51 }//namespace gtx
52 }//namespace glm
53
54 #include "optimum_pow.inl"
glm::gtx::pow3
GLM_FUNC_DECL genType pow3(genType const &x)
Returns x raised to the power of 3.
glm::gtx::pow4
GLM_FUNC_DECL genType pow4(genType const &x)
Returns x raised to the power of 4.
glm::gtx::pow2
GLM_FUNC_DECL genType pow2(genType const &x)
Returns x raised to the power of 2.
glm
Definition: common.hpp:20