Clutter Engine 0.0.1
Loading...
Searching...
No Matches
optimum_pow.inl
1
2
3namespace 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
GLM_FUNC_DECL genType pow2(genType const &x)
GLM_FUNC_DECL genType pow3(genType const &x)
GLM_FUNC_DECL genType pow4(genType const &x)
Core features
Definition common.hpp:21