GLM: fast_square_root.hpp Source File

GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

fast_square_root.hpp
Go to the documentation of this file.
1
40 #ifndef GLM_GTX_fast_square_root
41 #define GLM_GTX_fast_square_root
42
43 // Dependency:
44 #include "../glm.hpp"
45
46 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
47 # pragma message("GLM: GLM_GTX_fast_square_root extension included")
48 #endif
49
50 namespace glm
51 {
54
57 template <typename genType>
58 genType fastSqrt(genType const & x);
59
62 template <typename genType>
63 genType fastInverseSqrt(genType const & x);
64
67 template <typename genType>
68 typename genType::value_type fastLength(genType const & x);
69
72 template <typename genType>
73 typename genType::value_type fastDistance(genType const & x, genType const & y);
74
77 template <typename genType>
78 genType fastNormalize(genType const & x);
79
81 }// namespace glm
82
83 #include "fast_square_root.inl"
84
85 #endif//GLM_GTX_fast_square_root
glm::fastSqrt
genType fastSqrt(genType const &x)
Faster than the common sqrt function but less accurate.
glm::fastInverseSqrt
genType fastInverseSqrt(genType const &x)
Faster than the common inversesqrt function but less accurate.
glm::fastDistance
genType::value_type fastDistance(genType const &x, genType const &y)
Faster than the common distance function but less accurate.
glm::fastNormalize
genType fastNormalize(genType const &x)
Faster than the common normalize function but less accurate.
glm::fastLength
genType::value_type fastLength(genType const &x)
Faster than the common length function but less accurate.