Platformer in OpenGL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

157 lines
7.1 KiB

преди 5 години
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>0.9.9 API documenation: GLM_GTX_normalize_dot</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectlogo"><img alt="Logo" src="logo-mini.png"/></td>
  24. <td id="projectalign" style="padding-left: 0.5em;">
  25. <div id="projectname">0.9.9 API documenation
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.14 -->
  34. <script type="text/javascript">
  35. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. /* @license-end */
  38. </script>
  39. <script type="text/javascript" src="menudata.js"></script>
  40. <script type="text/javascript" src="menu.js"></script>
  41. <script type="text/javascript">
  42. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  43. $(function() {
  44. initMenu('',true,false,'search.php','Search');
  45. $(document).ready(function() { init_search(); });
  46. });
  47. /* @license-end */</script>
  48. <div id="main-nav"></div>
  49. </div><!-- top -->
  50. <!-- window showing the filter options -->
  51. <div id="MSearchSelectWindow"
  52. onmouseover="return searchBox.OnSearchSelectShow()"
  53. onmouseout="return searchBox.OnSearchSelectHide()"
  54. onkeydown="return searchBox.OnSearchSelectKey(event)">
  55. </div>
  56. <!-- iframe showing the search results (closed by default) -->
  57. <div id="MSearchResultsWindow">
  58. <iframe src="javascript:void(0)" frameborder="0"
  59. name="MSearchResults" id="MSearchResults">
  60. </iframe>
  61. </div>
  62. <div class="header">
  63. <div class="summary">
  64. <a href="#func-members">Functions</a> </div>
  65. <div class="headertitle">
  66. <div class="title">GLM_GTX_normalize_dot<div class="ingroups"><a class="el" href="a00705.html">Experimental extensions</a></div></div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <table class="memberdecls">
  70. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  71. Functions</h2></td></tr>
  72. <tr class="memitem:ga2746fb9b5bd22b06b2f7c8babba5de9e"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  73. <tr class="memitem:ga2746fb9b5bd22b06b2f7c8babba5de9e"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00762.html#ga2746fb9b5bd22b06b2f7c8babba5de9e">fastNormalizeDot</a> (vec&lt; L, T, Q &gt; const &amp;x, vec&lt; L, T, Q &gt; const &amp;y)</td></tr>
  74. <tr class="separator:ga2746fb9b5bd22b06b2f7c8babba5de9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:gacb140a2b903115d318c8b0a2fb5a5daa"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:gacb140a2b903115d318c8b0a2fb5a5daa"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00762.html#gacb140a2b903115d318c8b0a2fb5a5daa">normalizeDot</a> (vec&lt; L, T, Q &gt; const &amp;x, vec&lt; L, T, Q &gt; const &amp;y)</td></tr>
  77. <tr class="separator:gacb140a2b903115d318c8b0a2fb5a5daa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. </table>
  79. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  80. <p>Include &lt;glm/gtx/normalized_dot.hpp&gt; to use the features of this extension. </p>
  81. <p>Dot product of vectors that need to be normalize with a single square root. </p>
  82. <h2 class="groupheader">Function Documentation</h2>
  83. <a id="ga2746fb9b5bd22b06b2f7c8babba5de9e"></a>
  84. <h2 class="memtitle"><span class="permalink"><a href="#ga2746fb9b5bd22b06b2f7c8babba5de9e">&#9670;&nbsp;</a></span>fastNormalizeDot()</h2>
  85. <div class="memitem">
  86. <div class="memproto">
  87. <table class="memname">
  88. <tr>
  89. <td class="memname">GLM_FUNC_DECL T glm::fastNormalizeDot </td>
  90. <td>(</td>
  91. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  92. <td class="paramname"><em>x</em>, </td>
  93. </tr>
  94. <tr>
  95. <td class="paramkey"></td>
  96. <td></td>
  97. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  98. <td class="paramname"><em>y</em>&#160;</td>
  99. </tr>
  100. <tr>
  101. <td></td>
  102. <td>)</td>
  103. <td></td><td></td>
  104. </tr>
  105. </table>
  106. </div><div class="memdoc">
  107. <p>Normalize parameters and returns the dot product of x and y. </p>
  108. <p>Faster that dot(fastNormalize(x), fastNormalize(y)).</p>
  109. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00762.html" title="Include &lt;glm/gtx/normalized_dot.hpp&gt; to use the features of this extension. ">GLM_GTX_normalize_dot</a> extension. </dd></dl>
  110. </div>
  111. </div>
  112. <a id="gacb140a2b903115d318c8b0a2fb5a5daa"></a>
  113. <h2 class="memtitle"><span class="permalink"><a href="#gacb140a2b903115d318c8b0a2fb5a5daa">&#9670;&nbsp;</a></span>normalizeDot()</h2>
  114. <div class="memitem">
  115. <div class="memproto">
  116. <table class="memname">
  117. <tr>
  118. <td class="memname">GLM_FUNC_DECL T glm::normalizeDot </td>
  119. <td>(</td>
  120. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  121. <td class="paramname"><em>x</em>, </td>
  122. </tr>
  123. <tr>
  124. <td class="paramkey"></td>
  125. <td></td>
  126. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  127. <td class="paramname"><em>y</em>&#160;</td>
  128. </tr>
  129. <tr>
  130. <td></td>
  131. <td>)</td>
  132. <td></td><td></td>
  133. </tr>
  134. </table>
  135. </div><div class="memdoc">
  136. <p>Normalize parameters and returns the dot product of x and y. </p>
  137. <p>It's faster that dot(normalize(x), normalize(y)).</p>
  138. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00762.html" title="Include &lt;glm/gtx/normalized_dot.hpp&gt; to use the features of this extension. ">GLM_GTX_normalize_dot</a> extension. </dd></dl>
  139. </div>
  140. </div>
  141. </div><!-- contents -->
  142. <!-- start footer part -->
  143. <hr class="footer"/><address class="footer"><small>
  144. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  145. <img class="footer" src="doxygen.png" alt="doxygen"/>
  146. </a> 1.8.14
  147. </small></address>
  148. </body>
  149. </html>