| 1 | /// @ref gtx_optimum_pow |
| 2 | |
| 3 | namespace glm |
| 4 | { |
| 5 | template<typename genType> |
| 6 | GLM_FUNC_QUALIFIER genType pow2(genType const& x) |
| 7 | { |
| 8 | return x * x; |
| 9 | } |
| 10 | |
| 11 | template<typename genType> |
| 12 | GLM_FUNC_QUALIFIER genType pow3(genType const& x) |
| 13 | { |
| 14 | return x * x * x; |
| 15 | } |
| 16 | |
| 17 | template<typename genType> |
| 18 | GLM_FUNC_QUALIFIER genType pow4(genType const& x) |
| 19 | { |
| 20 | return (x * x) * (x * x); |
| 21 | } |
| 22 | }//namespace glm |