40 #ifndef GLM_GTX_fast_square_root
41 #define GLM_GTX_fast_square_root
46 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
47 # pragma message("GLM: GLM_GTX_fast_square_root extension included")
57 template <
typename genType>
62 template <
typename genType>
67 template <
typename genType>
68 typename genType::value_type
fastLength(genType
const & x);
72 template <
typename genType>
73 typename genType::value_type
fastDistance(genType
const & x, genType
const & y);
77 template <
typename genType>
83 #include "fast_square_root.inl"
85 #endif//GLM_GTX_fast_square_root
genType fastSqrt(genType const &x)
Faster than the common sqrt function but less accurate.
genType fastInverseSqrt(genType const &x)
Faster than the common inversesqrt function but less accurate.
genType::value_type fastDistance(genType const &x, genType const &y)
Faster than the common distance function but less accurate.
genType fastNormalize(genType const &x)
Faster than the common normalize function but less accurate.
genType::value_type fastLength(genType const &x)
Faster than the common length function but less accurate.