<ahref="a00548.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> </div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="preprocessor">#pragma once</span></div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> </div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment">// Dependency:</span></div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="preprocessor">#include "../gtx/fast_square_root.hpp"</span></div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> </div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="preprocessor">#ifndef GLM_ENABLE_EXPERIMENTAL</span></div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="preprocessor"># 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."</span></div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="preprocessor">#endif</span></div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> </div><divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="preprocessor">#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)</span></div><divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="preprocessor"># pragma message("GLM: GLM_GTX_normalize_dot extension included")</span></div><divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="preprocessor">#endif</span></div><divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> </div><divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="keyword">namespace </span><aclass="code"href="a00792.html">glm</a></div><divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> {</div><divclass="line"><aname="l00031"></a><spanclass="lineno"> 31</span> </div><divclass="line"><aname="l00036"></a><spanclass="lineno"> 36</span> <spanclass="keyword">template</span><length_t L, <spanclass="keyword">typename</span> T, qualifier Q></div><divclass="line"><aname="l00037"></a><spanclass="lineno"> 37</span>  GLM_FUNC_DECL T <aclass="code"href="a00762.html#gacb140a2b903115d318c8b0a2fb5a5daa">normalizeDot</a>(vec<L, T, Q><spanclass="keyword">const</span>& x, vec<L, T, Q><spanclass="keyword">const</span>& y);</div><divclass="line"><aname="l00038"></a><spanclass="lineno"> 38</span> </div><divclass="line"><aname="l00043"></a><spanclass="lineno"> 43</span> <spanclass="keyword">template</span><length_t L, <spanclass="keyword">typename</span> T, qualifier Q></div><divclass="line"><aname="l00044"></a><spanclass="lineno"> 44</span>  GLM_FUNC_DECL T <aclass="code"href="a00762.html#ga2746fb9b5bd22b06b2f7c8babba5de9e">fastNormalizeDot</a>(vec<L, T, Q><spanclass="keyword">const</span>& x, vec<L, T, Q><spanclass="keyword">const</span>& y);</div><divclass="line"><aname="l00045"></a><spanclass="lineno"> 45</span> </div><divclass="line"><aname="l00047"></a><spanclass="lineno"> 47</span> }<spanclass="comment">//namespace glm</span></div><divclass="line"><aname="l00048"></a><spanclass="lineno"> 48</span> </div><divclass="line"><aname="l00049"></a><spanclass="lineno"> 49</span> <spanclass="preprocessor">#include "normalize_dot.inl"</span></div><divclass="ttc"id="a00762_html_gacb140a2b903115d318c8b0a2fb5a5daa"><divclass="ttname"><ahref="a00762.html#gacb140a2b903115d318c8b0a2fb5a5daa">glm::normalizeDot</a></div><div
<divclass="ttc"id="a00762_html_ga2746fb9b5bd22b06b2f7c8babba5de9e"><divclass="ttname"><ahref="a00762.html#ga2746fb9b5bd22b06b2f7c8babba5de9e">glm::fastNormalizeDot</a></div><divclass="ttdeci">GLM_FUNC_DECL T fastNormalizeDot(vec< L, T, Q > const &x, vec< L, T, Q > const &y)</div><divclass="ttdoc">Normalize parameters and returns the dot product of x and y. </div></div>