0.9.9 API documenation
|
Dot product of vectors that need to be normalize with a single square root. More...
Functions | |
template<length_t L, typename T , qualifier P> | |
GLM_FUNC_DECL T | fastNormalizeDot (vec< L, T, P > const &x, vec< L, T, P > const &y) |
Normalize parameters and returns the dot product of x and y. More... | |
template<length_t L, typename T , qualifier P> | |
GLM_FUNC_DECL T | normalizeDot (vec< L, T, P > const &x, vec< L, T, P > const &y) |
Normalize parameters and returns the dot product of x and y. More... | |
Dot product of vectors that need to be normalize with a single square root.
<glm/gtx/normalized_dot.hpp> need to be included to use these functionalities.
GLM_FUNC_DECL T glm::fastNormalizeDot | ( | vec< L, T, P > const & | x, |
vec< L, T, P > const & | y | ||
) |
Normalize parameters and returns the dot product of x and y.
Faster that dot(fastNormalize(x), fastNormalize(y)).
GLM_FUNC_DECL T glm::normalizeDot | ( | vec< L, T, P > const & | x, |
vec< L, T, P > const & | y | ||
) |
Normalize parameters and returns the dot product of x and y.
It's faster that dot(normalize(x), normalize(y)).