GLM  0.9.5
normalize_dot.hpp
Go to the documentation of this file.
1 
39 #ifndef GLM_GTX_normalize_dot
40 #define GLM_GTX_normalize_dot
41 
42 // Dependency:
43 #include "../glm.hpp"
44 #include "../gtx/fast_square_root.hpp"
45 
46 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
47 # pragma message("GLM: GLM_GTX_normalize_dot extension included")
48 #endif
49 
50 namespace glm
51 {
54 
58  template <typename genType>
59  typename genType::value_type normalizeDot(
60  genType const & x,
61  genType const & y);
62 
66  template <typename genType>
67  typename genType::value_type fastNormalizeDot(
68  genType const & x,
69  genType const & y);
70 
72 }//namespace glm
73 
74 #include "normalize_dot.inl"
75 
76 #endif//GLM_GTX_normalize_dot
genType::value_type fastNormalizeDot(genType const &x, genType const &y)
Normalize parameters and returns the dot product of x and y.
genType::value_type normalizeDot(genType const &x, genType const &y)
Normalize parameters and returns the dot product of x and y.