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.

195 lines
9.1 KiB

5 years ago
  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_vector_angle</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_vector_angle<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:ga2e2917b4cb75ca3d043ac15ff88f14e1"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  73. <tr class="memitem:ga2e2917b4cb75ca3d043ac15ff88f14e1"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00784.html#ga2e2917b4cb75ca3d043ac15ff88f14e1">angle</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:ga2e2917b4cb75ca3d043ac15ff88f14e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:ga9556a803dce87fe0f42fdabe4ebba1d5"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:ga9556a803dce87fe0f42fdabe4ebba1d5"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00784.html#ga9556a803dce87fe0f42fdabe4ebba1d5">orientedAngle</a> (vec&lt; 2, T, Q &gt; const &amp;x, vec&lt; 2, T, Q &gt; const &amp;y)</td></tr>
  77. <tr class="separator:ga9556a803dce87fe0f42fdabe4ebba1d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga706fce3d111f485839756a64f5a48553"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:ga706fce3d111f485839756a64f5a48553"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00784.html#ga706fce3d111f485839756a64f5a48553">orientedAngle</a> (vec&lt; 3, T, Q &gt; const &amp;x, vec&lt; 3, T, Q &gt; const &amp;y, vec&lt; 3, T, Q &gt; const &amp;ref)</td></tr>
  80. <tr class="separator:ga706fce3d111f485839756a64f5a48553"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. </table>
  82. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  83. <p>Include &lt;<a class="el" href="a00608.html" title="GLM_GTX_vector_angle ">glm/gtx/vector_angle.hpp</a>&gt; to use the features of this extension. </p>
  84. <p>Compute angle between vectors </p>
  85. <h2 class="groupheader">Function Documentation</h2>
  86. <a id="ga2e2917b4cb75ca3d043ac15ff88f14e1"></a>
  87. <h2 class="memtitle"><span class="permalink"><a href="#ga2e2917b4cb75ca3d043ac15ff88f14e1">&#9670;&nbsp;</a></span>angle()</h2>
  88. <div class="memitem">
  89. <div class="memproto">
  90. <table class="memname">
  91. <tr>
  92. <td class="memname">GLM_FUNC_DECL T glm::angle </td>
  93. <td>(</td>
  94. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  95. <td class="paramname"><em>x</em>, </td>
  96. </tr>
  97. <tr>
  98. <td class="paramkey"></td>
  99. <td></td>
  100. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  101. <td class="paramname"><em>y</em>&#160;</td>
  102. </tr>
  103. <tr>
  104. <td></td>
  105. <td>)</td>
  106. <td></td><td></td>
  107. </tr>
  108. </table>
  109. </div><div class="memdoc">
  110. <p>Returns the absolute angle between two vectors. </p>
  111. <p>Parameters need to be normalized. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="a00784.html" title="Include &lt;glm/gtx/vector_angle.hpp&gt; to use the features of this extension. ">GLM_GTX_vector_angle</a> extension. </dd></dl>
  112. </div>
  113. </div>
  114. <a id="ga9556a803dce87fe0f42fdabe4ebba1d5"></a>
  115. <h2 class="memtitle"><span class="permalink"><a href="#ga9556a803dce87fe0f42fdabe4ebba1d5">&#9670;&nbsp;</a></span>orientedAngle() <span class="overload">[1/2]</span></h2>
  116. <div class="memitem">
  117. <div class="memproto">
  118. <table class="memname">
  119. <tr>
  120. <td class="memname">GLM_FUNC_DECL T glm::orientedAngle </td>
  121. <td>(</td>
  122. <td class="paramtype">vec&lt; 2, T, Q &gt; const &amp;&#160;</td>
  123. <td class="paramname"><em>x</em>, </td>
  124. </tr>
  125. <tr>
  126. <td class="paramkey"></td>
  127. <td></td>
  128. <td class="paramtype">vec&lt; 2, T, Q &gt; const &amp;&#160;</td>
  129. <td class="paramname"><em>y</em>&#160;</td>
  130. </tr>
  131. <tr>
  132. <td></td>
  133. <td>)</td>
  134. <td></td><td></td>
  135. </tr>
  136. </table>
  137. </div><div class="memdoc">
  138. <p>Returns the oriented angle between two 2d vectors. </p>
  139. <p>Parameters need to be normalized. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="a00784.html" title="Include &lt;glm/gtx/vector_angle.hpp&gt; to use the features of this extension. ">GLM_GTX_vector_angle</a> extension. </dd></dl>
  140. </div>
  141. </div>
  142. <a id="ga706fce3d111f485839756a64f5a48553"></a>
  143. <h2 class="memtitle"><span class="permalink"><a href="#ga706fce3d111f485839756a64f5a48553">&#9670;&nbsp;</a></span>orientedAngle() <span class="overload">[2/2]</span></h2>
  144. <div class="memitem">
  145. <div class="memproto">
  146. <table class="memname">
  147. <tr>
  148. <td class="memname">GLM_FUNC_DECL T glm::orientedAngle </td>
  149. <td>(</td>
  150. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  151. <td class="paramname"><em>x</em>, </td>
  152. </tr>
  153. <tr>
  154. <td class="paramkey"></td>
  155. <td></td>
  156. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  157. <td class="paramname"><em>y</em>, </td>
  158. </tr>
  159. <tr>
  160. <td class="paramkey"></td>
  161. <td></td>
  162. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  163. <td class="paramname"><em>ref</em>&#160;</td>
  164. </tr>
  165. <tr>
  166. <td></td>
  167. <td>)</td>
  168. <td></td><td></td>
  169. </tr>
  170. </table>
  171. </div><div class="memdoc">
  172. <p>Returns the oriented angle between two 3d vectors based from a reference axis. </p>
  173. <p>Parameters need to be normalized. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="a00784.html" title="Include &lt;glm/gtx/vector_angle.hpp&gt; to use the features of this extension. ">GLM_GTX_vector_angle</a> extension. </dd></dl>
  174. </div>
  175. </div>
  176. </div><!-- contents -->
  177. <!-- start footer part -->
  178. <hr class="footer"/><address class="footer"><small>
  179. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  180. <img class="footer" src="doxygen.png" alt="doxygen"/>
  181. </a> 1.8.14
  182. </small></address>
  183. </body>
  184. </html>