| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | #pragma once |
| 15 | |
| 16 | |
| 17 | #include "../gtx/fast_square_root.hpp" |
| 18 | |
| 19 | #ifndef GLM_ENABLE_EXPERIMENTAL |
| 20 | # error "GLM: GLM_GTX_normalize_dot is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it." |
| 21 | #endif |
| 22 | |
| 23 | #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) |
| 24 | # pragma message("GLM: GLM_GTX_normalize_dot extension included") |
| 25 | #endif |
| 26 | |
| 27 | namespace glm |
| 28 | { |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | template<length_t L, typename T, qualifier Q> |
| 37 | GLM_FUNC_DECL T normalizeDot(vec<L, T, Q> const& x, vec<L, T, Q> const& y); |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | template<length_t L, typename T, qualifier Q> |
| 44 | GLM_FUNC_DECL T fastNormalizeDot(vec<L, T, Q> const& x, vec<L, T, Q> const& y); |
| 45 | |
| 46 | |
| 47 | } |
| 48 | |
| 49 | #include "normalize_dot.inl" |