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.

236 lines
11 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_EXT_quaternion_geometric</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_geometric<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:ga755beaa929c75751dee646cccba37e4c"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  73. <tr class="memitem:ga755beaa929c75751dee646cccba37e4c"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_QUALIFIER qua&lt; T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00675.html#ga755beaa929c75751dee646cccba37e4c">cross</a> (qua&lt; T, Q &gt; const &amp;q1, qua&lt; T, Q &gt; const &amp;q2)</td></tr>
  74. <tr class="separator:ga755beaa929c75751dee646cccba37e4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:ga84865a56acb8fbd7bc4f5c0b928e3cfc"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:ga84865a56acb8fbd7bc4f5c0b928e3cfc"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00675.html#ga84865a56acb8fbd7bc4f5c0b928e3cfc">dot</a> (qua&lt; T, Q &gt; const &amp;x, qua&lt; T, Q &gt; const &amp;y)</td></tr>
  77. <tr class="separator:ga84865a56acb8fbd7bc4f5c0b928e3cfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:gab703732449be6c7199369b3f9a91ed38"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:gab703732449be6c7199369b3f9a91ed38"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00675.html#gab703732449be6c7199369b3f9a91ed38">length</a> (qua&lt; T, Q &gt; const &amp;q)</td></tr>
  80. <tr class="separator:gab703732449be6c7199369b3f9a91ed38"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:gabf30e3263fffe8dcc6659aea76ae8927"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  82. <tr class="memitem:gabf30e3263fffe8dcc6659aea76ae8927"><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="a00675.html#gabf30e3263fffe8dcc6659aea76ae8927">normalize</a> (qua&lt; T, Q &gt; const &amp;q)</td></tr>
  83. <tr class="separator:gabf30e3263fffe8dcc6659aea76ae8927"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. </table>
  85. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  86. <p>Provides geometric functions for quaternion types. </p>
  87. <p>Include &lt;<a class="el" href="a00221.html" title="GLM_EXT_quaternion_geometric ">glm/ext/quaternion_geometric.hpp</a>&gt; to use the features of this extension.</p>
  88. <dl class="section see"><dt>See also</dt><dd>core_geometric </dd>
  89. <dd>
  90. <a class="el" href="a00673.html" title="Exposes single-precision floating point quaternion type. ">GLM_EXT_quaternion_float</a> </dd>
  91. <dd>
  92. <a class="el" href="a00670.html" title="Exposes double-precision floating point quaternion type. ">GLM_EXT_quaternion_double</a> </dd></dl>
  93. <h2 class="groupheader">Function Documentation</h2>
  94. <a id="ga755beaa929c75751dee646cccba37e4c"></a>
  95. <h2 class="memtitle"><span class="permalink"><a href="#ga755beaa929c75751dee646cccba37e4c">&#9670;&nbsp;</a></span>cross()</h2>
  96. <div class="memitem">
  97. <div class="memproto">
  98. <table class="memname">
  99. <tr>
  100. <td class="memname">GLM_FUNC_QUALIFIER qua&lt;T, Q&gt; glm::cross </td>
  101. <td>(</td>
  102. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  103. <td class="paramname"><em>q1</em>, </td>
  104. </tr>
  105. <tr>
  106. <td class="paramkey"></td>
  107. <td></td>
  108. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  109. <td class="paramname"><em>q2</em>&#160;</td>
  110. </tr>
  111. <tr>
  112. <td></td>
  113. <td>)</td>
  114. <td></td><td></td>
  115. </tr>
  116. </table>
  117. </div><div class="memdoc">
  118. <p>Compute a cross product. </p>
  119. <dl class="tparams"><dt>Template Parameters</dt><dd>
  120. <table class="tparams">
  121. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  122. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  123. </table>
  124. </dd>
  125. </dl>
  126. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00675.html" title="Provides geometric functions for quaternion types. ">GLM_EXT_quaternion_geometric</a> </dd></dl>
  127. </div>
  128. </div>
  129. <a id="ga84865a56acb8fbd7bc4f5c0b928e3cfc"></a>
  130. <h2 class="memtitle"><span class="permalink"><a href="#ga84865a56acb8fbd7bc4f5c0b928e3cfc">&#9670;&nbsp;</a></span>dot()</h2>
  131. <div class="memitem">
  132. <div class="memproto">
  133. <table class="memname">
  134. <tr>
  135. <td class="memname">GLM_FUNC_DECL T glm::dot </td>
  136. <td>(</td>
  137. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  138. <td class="paramname"><em>x</em>, </td>
  139. </tr>
  140. <tr>
  141. <td class="paramkey"></td>
  142. <td></td>
  143. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  144. <td class="paramname"><em>y</em>&#160;</td>
  145. </tr>
  146. <tr>
  147. <td></td>
  148. <td>)</td>
  149. <td></td><td></td>
  150. </tr>
  151. </table>
  152. </div><div class="memdoc">
  153. <p>Returns dot product of q1 and q2, i.e., q1[0] * q2[0] + q1[1] * q2[1] + ... </p>
  154. <dl class="tparams"><dt>Template Parameters</dt><dd>
  155. <table class="tparams">
  156. <tr><td class="paramname">T</td><td>Floating-point scalar types. </td></tr>
  157. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  158. </table>
  159. </dd>
  160. </dl>
  161. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00675.html" title="Provides geometric functions for quaternion types. ">GLM_EXT_quaternion_geometric</a> </dd></dl>
  162. </div>
  163. </div>
  164. <a id="gab703732449be6c7199369b3f9a91ed38"></a>
  165. <h2 class="memtitle"><span class="permalink"><a href="#gab703732449be6c7199369b3f9a91ed38">&#9670;&nbsp;</a></span>length()</h2>
  166. <div class="memitem">
  167. <div class="memproto">
  168. <table class="memname">
  169. <tr>
  170. <td class="memname">GLM_FUNC_DECL T glm::length </td>
  171. <td>(</td>
  172. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  173. <td class="paramname"><em>q</em></td><td>)</td>
  174. <td></td>
  175. </tr>
  176. </table>
  177. </div><div class="memdoc">
  178. <p>Returns the norm of a quaternions. </p>
  179. <dl class="tparams"><dt>Template Parameters</dt><dd>
  180. <table class="tparams">
  181. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  182. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  183. </table>
  184. </dd>
  185. </dl>
  186. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00675.html" title="Provides geometric functions for quaternion types. ">GLM_EXT_quaternion_geometric</a> </dd></dl>
  187. </div>
  188. </div>
  189. <a id="gabf30e3263fffe8dcc6659aea76ae8927"></a>
  190. <h2 class="memtitle"><span class="permalink"><a href="#gabf30e3263fffe8dcc6659aea76ae8927">&#9670;&nbsp;</a></span>normalize()</h2>
  191. <div class="memitem">
  192. <div class="memproto">
  193. <table class="memname">
  194. <tr>
  195. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::normalize </td>
  196. <td>(</td>
  197. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  198. <td class="paramname"><em>q</em></td><td>)</td>
  199. <td></td>
  200. </tr>
  201. </table>
  202. </div><div class="memdoc">
  203. <p>Returns the normalized quaternion. </p>
  204. <dl class="tparams"><dt>Template Parameters</dt><dd>
  205. <table class="tparams">
  206. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  207. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  208. </table>
  209. </dd>
  210. </dl>
  211. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00675.html" title="Provides geometric functions for quaternion types. ">GLM_EXT_quaternion_geometric</a> </dd></dl>
  212. </div>
  213. </div>
  214. </div><!-- contents -->
  215. <!-- start footer part -->
  216. <hr class="footer"/><address class="footer"><small>
  217. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  218. <img class="footer" src="doxygen.png" alt="doxygen"/>
  219. </a> 1.8.14
  220. </small></address>
  221. </body>
  222. </html>