Platformer in OpenGL
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

205 行
9.3 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_EXT_quaternion_trigonometric</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_EXT_quaternion_trigonometric<div class="ingroups"><a class="el" href="a00703.html">Stable 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:ga8aa248b31d5ade470c87304df5eb7bd8"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  73. <tr class="memitem:ga8aa248b31d5ade470c87304df5eb7bd8"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00678.html#ga8aa248b31d5ade470c87304df5eb7bd8">angle</a> (qua&lt; T, Q &gt; const &amp;x)</td></tr>
  74. <tr class="separator:ga8aa248b31d5ade470c87304df5eb7bd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:ga5c0095cfcb218c75a4b79d7687950036"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:ga5c0095cfcb218c75a4b79d7687950036"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL qua&lt; T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00678.html#ga5c0095cfcb218c75a4b79d7687950036">angleAxis</a> (T const &amp;angle, vec&lt; 3, T, Q &gt; const &amp;axis)</td></tr>
  77. <tr class="separator:ga5c0095cfcb218c75a4b79d7687950036"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga764254f10248b505e936e5309a88c23d"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:ga764254f10248b505e936e5309a88c23d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00678.html#ga764254f10248b505e936e5309a88c23d">axis</a> (qua&lt; T, Q &gt; const &amp;x)</td></tr>
  80. <tr class="separator:ga764254f10248b505e936e5309a88c23d"><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>Provides trigonometric functions for quaternion types. </p>
  84. <p>Include &lt;<a class="el" href="a00230.html" title="GLM_EXT_quaternion_trigonometric ">glm/ext/quaternion_trigonometric.hpp</a>&gt; to use the features of this extension.</p>
  85. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00673.html" title="Exposes single-precision floating point quaternion type. ">GLM_EXT_quaternion_float</a> </dd>
  86. <dd>
  87. <a class="el" href="a00670.html" title="Exposes double-precision floating point quaternion type. ">GLM_EXT_quaternion_double</a> </dd>
  88. <dd>
  89. <a class="el" href="a00672.html" title="Provides exponential functions for quaternion types. ">GLM_EXT_quaternion_exponential</a> </dd>
  90. <dd>
  91. <a class="el" href="a00675.html" title="Provides geometric functions for quaternion types. ">GLM_EXT_quaternion_geometric</a> </dd>
  92. <dd>
  93. <a class="el" href="a00676.html" title="Exposes comparison functions for quaternion types that take a user defined epsilon values...">GLM_EXT_quaternion_relational</a> </dd>
  94. <dd>
  95. <a class="el" href="a00677.html" title="Provides transformation functions for quaternion types. ">GLM_EXT_quaternion_transform</a> </dd></dl>
  96. <h2 class="groupheader">Function Documentation</h2>
  97. <a id="ga8aa248b31d5ade470c87304df5eb7bd8"></a>
  98. <h2 class="memtitle"><span class="permalink"><a href="#ga8aa248b31d5ade470c87304df5eb7bd8">&#9670;&nbsp;</a></span>angle()</h2>
  99. <div class="memitem">
  100. <div class="memproto">
  101. <table class="memname">
  102. <tr>
  103. <td class="memname">GLM_FUNC_DECL T glm::angle </td>
  104. <td>(</td>
  105. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  106. <td class="paramname"><em>x</em></td><td>)</td>
  107. <td></td>
  108. </tr>
  109. </table>
  110. </div><div class="memdoc">
  111. <p>Returns the quaternion rotation angle. </p>
  112. <dl class="tparams"><dt>Template Parameters</dt><dd>
  113. <table class="tparams">
  114. <tr><td class="paramname">T</td><td>A floating-point scalar type </td></tr>
  115. <tr><td class="paramname">Q</td><td>A value from qualifier enum </td></tr>
  116. </table>
  117. </dd>
  118. </dl>
  119. </div>
  120. </div>
  121. <a id="ga5c0095cfcb218c75a4b79d7687950036"></a>
  122. <h2 class="memtitle"><span class="permalink"><a href="#ga5c0095cfcb218c75a4b79d7687950036">&#9670;&nbsp;</a></span>angleAxis()</h2>
  123. <div class="memitem">
  124. <div class="memproto">
  125. <table class="memname">
  126. <tr>
  127. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::angleAxis </td>
  128. <td>(</td>
  129. <td class="paramtype">T const &amp;&#160;</td>
  130. <td class="paramname"><em>angle</em>, </td>
  131. </tr>
  132. <tr>
  133. <td class="paramkey"></td>
  134. <td></td>
  135. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  136. <td class="paramname"><em>axis</em>&#160;</td>
  137. </tr>
  138. <tr>
  139. <td></td>
  140. <td>)</td>
  141. <td></td><td></td>
  142. </tr>
  143. </table>
  144. </div><div class="memdoc">
  145. <p>Build a quaternion from an angle and a normalized axis. </p>
  146. <dl class="params"><dt>Parameters</dt><dd>
  147. <table class="params">
  148. <tr><td class="paramname">angle</td><td>Angle expressed in radians. </td></tr>
  149. <tr><td class="paramname">axis</td><td>Axis of the quaternion, must be normalized.</td></tr>
  150. </table>
  151. </dd>
  152. </dl>
  153. <dl class="tparams"><dt>Template Parameters</dt><dd>
  154. <table class="tparams">
  155. <tr><td class="paramname">T</td><td>A floating-point scalar type </td></tr>
  156. <tr><td class="paramname">Q</td><td>A value from qualifier enum </td></tr>
  157. </table>
  158. </dd>
  159. </dl>
  160. </div>
  161. </div>
  162. <a id="ga764254f10248b505e936e5309a88c23d"></a>
  163. <h2 class="memtitle"><span class="permalink"><a href="#ga764254f10248b505e936e5309a88c23d">&#9670;&nbsp;</a></span>axis()</h2>
  164. <div class="memitem">
  165. <div class="memproto">
  166. <table class="memname">
  167. <tr>
  168. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::axis </td>
  169. <td>(</td>
  170. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  171. <td class="paramname"><em>x</em></td><td>)</td>
  172. <td></td>
  173. </tr>
  174. </table>
  175. </div><div class="memdoc">
  176. <p>Returns the q rotation axis. </p>
  177. <dl class="tparams"><dt>Template Parameters</dt><dd>
  178. <table class="tparams">
  179. <tr><td class="paramname">T</td><td>A floating-point scalar type </td></tr>
  180. <tr><td class="paramname">Q</td><td>A value from qualifier enum </td></tr>
  181. </table>
  182. </dd>
  183. </dl>
  184. </div>
  185. </div>
  186. </div><!-- contents -->
  187. <!-- start footer part -->
  188. <hr class="footer"/><address class="footer"><small>
  189. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  190. <img class="footer" src="doxygen.png" alt="doxygen"/>
  191. </a> 1.8.14
  192. </small></address>
  193. </body>
  194. </html>