47 #include "../common.hpp" 
   48 #include "../exponential.hpp" 
   49 #include "../geometric.hpp" 
   51 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED)) 
   52 #       pragma message("GLM: GLM_GTX_fast_square_root extension included") 
   63         template <
typename genType> 
 
   64         GLM_FUNC_DECL genType 
fastSqrt(genType x);
 
   69         template <
typename T, precision P, 
template <
typename, precision> 
class vecType>
 
   70         GLM_FUNC_DECL vecType<T, P> 
fastSqrt(vecType<T, P> 
const & x);
 
   75         template <
typename genType> 
 
   81         template <
typename T, precision P, 
template <
typename, precision> 
class vecType>
 
   87         template <
typename genType>
 
   93         template <
typename T, precision P, 
template <
typename, precision> 
class vecType>
 
   94         GLM_FUNC_DECL T 
fastLength(vecType<T, P> 
const & x);
 
   99         template <
typename genType>
 
  100         GLM_FUNC_DECL genType 
fastDistance(genType x, genType y);
 
  105         template <
typename T, precision P, 
template <
typename, precision> 
class vecType>
 
  106         GLM_FUNC_DECL T 
fastDistance(vecType<T, P> 
const & x, vecType<T, P> 
const & y);
 
  111         template <
typename genType> 
 
  117 #include "fast_square_root.inl" 
GLM_FUNC_DECL T fastLength(vecType< T, P > const &x)
Faster than the common length function but less accurate. 
GLM_FUNC_DECL vecType< T, P > fastSqrt(vecType< T, P > const &x)
Faster than the common sqrt function but less accurate. 
GLM_FUNC_DECL T fastDistance(vecType< T, P > const &x, vecType< T, P > const &y)
Faster than the common distance function but less accurate. 
GLM_FUNC_DECL genType fastNormalize(genType const &x)
Faster than the common normalize function but less accurate. 
GLM_FUNC_DECL vecType< T, P > fastInverseSqrt(vecType< T, P > const &x)
Faster than the common inversesqrt function but less accurate.