Platformer in OpenGL
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

616 lignes
32 KiB

il y a 5 ans
  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_quaternion</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_quaternion<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:ga2f32f970411c44cdd38bb98960198385"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  73. <tr class="memitem:ga2f32f970411c44cdd38bb98960198385"><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="a00769.html#ga2f32f970411c44cdd38bb98960198385">cross</a> (qua&lt; T, Q &gt; const &amp;q, vec&lt; 3, T, Q &gt; const &amp;v)</td></tr>
  74. <tr class="separator:ga2f32f970411c44cdd38bb98960198385"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:ga9f5f77255756e5668dfee7f0d07ed021"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:ga9f5f77255756e5668dfee7f0d07ed021"><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="a00769.html#ga9f5f77255756e5668dfee7f0d07ed021">cross</a> (vec&lt; 3, T, Q &gt; const &amp;v, qua&lt; T, Q &gt; const &amp;q)</td></tr>
  77. <tr class="separator:ga9f5f77255756e5668dfee7f0d07ed021"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga321953c1b2e7befe6f5dcfddbfc6b76b"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:ga321953c1b2e7befe6f5dcfddbfc6b76b"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00769.html#ga321953c1b2e7befe6f5dcfddbfc6b76b">extractRealComponent</a> (qua&lt; T, Q &gt; const &amp;q)</td></tr>
  80. <tr class="separator:ga321953c1b2e7befe6f5dcfddbfc6b76b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:ga264e10708d58dd0ff53b7902a2bd2561"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  82. <tr class="memitem:ga264e10708d58dd0ff53b7902a2bd2561"><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="a00769.html#ga264e10708d58dd0ff53b7902a2bd2561">fastMix</a> (qua&lt; T, Q &gt; const &amp;x, qua&lt; T, Q &gt; const &amp;y, T const &amp;a)</td></tr>
  83. <tr class="separator:ga264e10708d58dd0ff53b7902a2bd2561"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:gacc5cd5f3e78de61d141c2355417424de"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  85. <tr class="memitem:gacc5cd5f3e78de61d141c2355417424de"><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="a00769.html#gacc5cd5f3e78de61d141c2355417424de">intermediate</a> (qua&lt; T, Q &gt; const &amp;prev, qua&lt; T, Q &gt; const &amp;curr, qua&lt; T, Q &gt; const &amp;next)</td></tr>
  86. <tr class="separator:gacc5cd5f3e78de61d141c2355417424de"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:ga58a609b1b8ab965f5df2702e8ca4e75b"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  88. <tr class="memitem:ga58a609b1b8ab965f5df2702e8ca4e75b"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00769.html#ga58a609b1b8ab965f5df2702e8ca4e75b">length2</a> (qua&lt; T, Q &gt; const &amp;q)</td></tr>
  89. <tr class="separator:ga58a609b1b8ab965f5df2702e8ca4e75b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:ga5ee8332600b2aca3a77622a28d857b55"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  91. <tr class="memitem:ga5ee8332600b2aca3a77622a28d857b55"><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="a00769.html#ga5ee8332600b2aca3a77622a28d857b55">quat_identity</a> ()</td></tr>
  92. <tr class="separator:ga5ee8332600b2aca3a77622a28d857b55"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:ga07da6ef58646442efe93b0c273d73776"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  94. <tr class="memitem:ga07da6ef58646442efe93b0c273d73776"><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="a00769.html#ga07da6ef58646442efe93b0c273d73776">rotate</a> (qua&lt; T, Q &gt; const &amp;q, vec&lt; 3, T, Q &gt; const &amp;v)</td></tr>
  95. <tr class="separator:ga07da6ef58646442efe93b0c273d73776"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:gafcb78dfff45fbf19a7fcb2bd03fbf196"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  97. <tr class="memitem:gafcb78dfff45fbf19a7fcb2bd03fbf196"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; 4, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00769.html#gafcb78dfff45fbf19a7fcb2bd03fbf196">rotate</a> (qua&lt; T, Q &gt; const &amp;q, vec&lt; 4, T, Q &gt; const &amp;v)</td></tr>
  98. <tr class="separator:gafcb78dfff45fbf19a7fcb2bd03fbf196"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:ga03e61282831cc3f52cc76f72f52ad2c5"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  100. <tr class="memitem:ga03e61282831cc3f52cc76f72f52ad2c5"><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="a00769.html#ga03e61282831cc3f52cc76f72f52ad2c5">rotation</a> (vec&lt; 3, T, Q &gt; const &amp;orig, vec&lt; 3, T, Q &gt; const &amp;dest)</td></tr>
  101. <tr class="separator:ga03e61282831cc3f52cc76f72f52ad2c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:gadc576cc957adc2a568cdcbc3799175bc"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  103. <tr class="memitem:gadc576cc957adc2a568cdcbc3799175bc"><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="a00769.html#gadc576cc957adc2a568cdcbc3799175bc">shortMix</a> (qua&lt; T, Q &gt; const &amp;x, qua&lt; T, Q &gt; const &amp;y, T const &amp;a)</td></tr>
  104. <tr class="separator:gadc576cc957adc2a568cdcbc3799175bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:ga0b9bf3459e132ad8a18fe970669e3e35"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  106. <tr class="memitem:ga0b9bf3459e132ad8a18fe970669e3e35"><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="a00769.html#ga0b9bf3459e132ad8a18fe970669e3e35">squad</a> (qua&lt; T, Q &gt; const &amp;q1, qua&lt; T, Q &gt; const &amp;q2, qua&lt; T, Q &gt; const &amp;s1, qua&lt; T, Q &gt; const &amp;s2, T const &amp;h)</td></tr>
  107. <tr class="separator:ga0b9bf3459e132ad8a18fe970669e3e35"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:gaab0afabb894b28a983fb8ec610409d56"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  109. <tr class="memitem:gaab0afabb894b28a983fb8ec610409d56"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat&lt; 3, 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00769.html#gaab0afabb894b28a983fb8ec610409d56">toMat3</a> (qua&lt; T, Q &gt; const &amp;x)</td></tr>
  110. <tr class="separator:gaab0afabb894b28a983fb8ec610409d56"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:gadfa2c77094e8cc9adad321d938855ffb"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  112. <tr class="memitem:gadfa2c77094e8cc9adad321d938855ffb"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat&lt; 4, 4, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00769.html#gadfa2c77094e8cc9adad321d938855ffb">toMat4</a> (qua&lt; T, Q &gt; const &amp;x)</td></tr>
  113. <tr class="separator:gadfa2c77094e8cc9adad321d938855ffb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:ga798de5d186499c9a9231cd92c8afaef1"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  115. <tr class="memitem:ga798de5d186499c9a9231cd92c8afaef1"><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="a00769.html#ga798de5d186499c9a9231cd92c8afaef1">toQuat</a> (mat&lt; 3, 3, T, Q &gt; const &amp;x)</td></tr>
  116. <tr class="separator:ga798de5d186499c9a9231cd92c8afaef1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:ga5eb36f51e1638e710451eba194dbc011"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  118. <tr class="memitem:ga5eb36f51e1638e710451eba194dbc011"><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="a00769.html#ga5eb36f51e1638e710451eba194dbc011">toQuat</a> (mat&lt; 4, 4, T, Q &gt; const &amp;x)</td></tr>
  119. <tr class="separator:ga5eb36f51e1638e710451eba194dbc011"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. </table>
  121. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  122. <p>Include &lt;<a class="el" href="a01373.html" title="GLM_GTX_quaternion ">glm/gtx/quaternion.hpp</a>&gt; to use the features of this extension. </p>
  123. <p>Extented quaternion types and functions </p>
  124. <h2 class="groupheader">Function Documentation</h2>
  125. <a id="ga2f32f970411c44cdd38bb98960198385"></a>
  126. <h2 class="memtitle"><span class="permalink"><a href="#ga2f32f970411c44cdd38bb98960198385">&#9670;&nbsp;</a></span>cross() <span class="overload">[1/2]</span></h2>
  127. <div class="memitem">
  128. <div class="memproto">
  129. <table class="memname">
  130. <tr>
  131. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::cross </td>
  132. <td>(</td>
  133. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  134. <td class="paramname"><em>q</em>, </td>
  135. </tr>
  136. <tr>
  137. <td class="paramkey"></td>
  138. <td></td>
  139. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  140. <td class="paramname"><em>v</em>&#160;</td>
  141. </tr>
  142. <tr>
  143. <td></td>
  144. <td>)</td>
  145. <td></td><td></td>
  146. </tr>
  147. </table>
  148. </div><div class="memdoc">
  149. <p>Compute a cross product between a quaternion and a vector. </p>
  150. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  151. </div>
  152. </div>
  153. <a id="ga9f5f77255756e5668dfee7f0d07ed021"></a>
  154. <h2 class="memtitle"><span class="permalink"><a href="#ga9f5f77255756e5668dfee7f0d07ed021">&#9670;&nbsp;</a></span>cross() <span class="overload">[2/2]</span></h2>
  155. <div class="memitem">
  156. <div class="memproto">
  157. <table class="memname">
  158. <tr>
  159. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::cross </td>
  160. <td>(</td>
  161. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  162. <td class="paramname"><em>v</em>, </td>
  163. </tr>
  164. <tr>
  165. <td class="paramkey"></td>
  166. <td></td>
  167. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  168. <td class="paramname"><em>q</em>&#160;</td>
  169. </tr>
  170. <tr>
  171. <td></td>
  172. <td>)</td>
  173. <td></td><td></td>
  174. </tr>
  175. </table>
  176. </div><div class="memdoc">
  177. <p>Compute a cross product between a vector and a quaternion. </p>
  178. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  179. </div>
  180. </div>
  181. <a id="ga321953c1b2e7befe6f5dcfddbfc6b76b"></a>
  182. <h2 class="memtitle"><span class="permalink"><a href="#ga321953c1b2e7befe6f5dcfddbfc6b76b">&#9670;&nbsp;</a></span>extractRealComponent()</h2>
  183. <div class="memitem">
  184. <div class="memproto">
  185. <table class="memname">
  186. <tr>
  187. <td class="memname">GLM_FUNC_DECL T glm::extractRealComponent </td>
  188. <td>(</td>
  189. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  190. <td class="paramname"><em>q</em></td><td>)</td>
  191. <td></td>
  192. </tr>
  193. </table>
  194. </div><div class="memdoc">
  195. <p>Extract the real component of a quaternion. </p>
  196. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  197. </div>
  198. </div>
  199. <a id="ga264e10708d58dd0ff53b7902a2bd2561"></a>
  200. <h2 class="memtitle"><span class="permalink"><a href="#ga264e10708d58dd0ff53b7902a2bd2561">&#9670;&nbsp;</a></span>fastMix()</h2>
  201. <div class="memitem">
  202. <div class="memproto">
  203. <table class="memname">
  204. <tr>
  205. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::fastMix </td>
  206. <td>(</td>
  207. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  208. <td class="paramname"><em>x</em>, </td>
  209. </tr>
  210. <tr>
  211. <td class="paramkey"></td>
  212. <td></td>
  213. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  214. <td class="paramname"><em>y</em>, </td>
  215. </tr>
  216. <tr>
  217. <td class="paramkey"></td>
  218. <td></td>
  219. <td class="paramtype">T const &amp;&#160;</td>
  220. <td class="paramname"><em>a</em>&#160;</td>
  221. </tr>
  222. <tr>
  223. <td></td>
  224. <td>)</td>
  225. <td></td><td></td>
  226. </tr>
  227. </table>
  228. </div><div class="memdoc">
  229. <p>Quaternion normalized linear interpolation. </p>
  230. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  231. </div>
  232. </div>
  233. <a id="gacc5cd5f3e78de61d141c2355417424de"></a>
  234. <h2 class="memtitle"><span class="permalink"><a href="#gacc5cd5f3e78de61d141c2355417424de">&#9670;&nbsp;</a></span>intermediate()</h2>
  235. <div class="memitem">
  236. <div class="memproto">
  237. <table class="memname">
  238. <tr>
  239. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::intermediate </td>
  240. <td>(</td>
  241. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  242. <td class="paramname"><em>prev</em>, </td>
  243. </tr>
  244. <tr>
  245. <td class="paramkey"></td>
  246. <td></td>
  247. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  248. <td class="paramname"><em>curr</em>, </td>
  249. </tr>
  250. <tr>
  251. <td class="paramkey"></td>
  252. <td></td>
  253. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  254. <td class="paramname"><em>next</em>&#160;</td>
  255. </tr>
  256. <tr>
  257. <td></td>
  258. <td>)</td>
  259. <td></td><td></td>
  260. </tr>
  261. </table>
  262. </div><div class="memdoc">
  263. <p>Returns an intermediate control point for squad interpolation. </p>
  264. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  265. </div>
  266. </div>
  267. <a id="ga58a609b1b8ab965f5df2702e8ca4e75b"></a>
  268. <h2 class="memtitle"><span class="permalink"><a href="#ga58a609b1b8ab965f5df2702e8ca4e75b">&#9670;&nbsp;</a></span>length2()</h2>
  269. <div class="memitem">
  270. <div class="memproto">
  271. <table class="memname">
  272. <tr>
  273. <td class="memname">GLM_FUNC_DECL T glm::length2 </td>
  274. <td>(</td>
  275. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  276. <td class="paramname"><em>q</em></td><td>)</td>
  277. <td></td>
  278. </tr>
  279. </table>
  280. </div><div class="memdoc">
  281. <p>Returns the squared length of x. </p>
  282. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  283. </div>
  284. </div>
  285. <a id="ga5ee8332600b2aca3a77622a28d857b55"></a>
  286. <h2 class="memtitle"><span class="permalink"><a href="#ga5ee8332600b2aca3a77622a28d857b55">&#9670;&nbsp;</a></span>quat_identity()</h2>
  287. <div class="memitem">
  288. <div class="memproto">
  289. <table class="memname">
  290. <tr>
  291. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::quat_identity </td>
  292. <td>(</td>
  293. <td class="paramname"></td><td>)</td>
  294. <td></td>
  295. </tr>
  296. </table>
  297. </div><div class="memdoc">
  298. <p>Create an identity quaternion. </p>
  299. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  300. </div>
  301. </div>
  302. <a id="ga07da6ef58646442efe93b0c273d73776"></a>
  303. <h2 class="memtitle"><span class="permalink"><a href="#ga07da6ef58646442efe93b0c273d73776">&#9670;&nbsp;</a></span>rotate() <span class="overload">[1/2]</span></h2>
  304. <div class="memitem">
  305. <div class="memproto">
  306. <table class="memname">
  307. <tr>
  308. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::rotate </td>
  309. <td>(</td>
  310. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  311. <td class="paramname"><em>q</em>, </td>
  312. </tr>
  313. <tr>
  314. <td class="paramkey"></td>
  315. <td></td>
  316. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  317. <td class="paramname"><em>v</em>&#160;</td>
  318. </tr>
  319. <tr>
  320. <td></td>
  321. <td>)</td>
  322. <td></td><td></td>
  323. </tr>
  324. </table>
  325. </div><div class="memdoc">
  326. <p>Returns quarternion square root. </p>
  327. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> Rotates a 3 components vector by a quaternion.</dd>
  328. <dd>
  329. <a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  330. </div>
  331. </div>
  332. <a id="gafcb78dfff45fbf19a7fcb2bd03fbf196"></a>
  333. <h2 class="memtitle"><span class="permalink"><a href="#gafcb78dfff45fbf19a7fcb2bd03fbf196">&#9670;&nbsp;</a></span>rotate() <span class="overload">[2/2]</span></h2>
  334. <div class="memitem">
  335. <div class="memproto">
  336. <table class="memname">
  337. <tr>
  338. <td class="memname">GLM_FUNC_DECL vec&lt;4, T, Q&gt; glm::rotate </td>
  339. <td>(</td>
  340. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  341. <td class="paramname"><em>q</em>, </td>
  342. </tr>
  343. <tr>
  344. <td class="paramkey"></td>
  345. <td></td>
  346. <td class="paramtype">vec&lt; 4, T, Q &gt; const &amp;&#160;</td>
  347. <td class="paramname"><em>v</em>&#160;</td>
  348. </tr>
  349. <tr>
  350. <td></td>
  351. <td>)</td>
  352. <td></td><td></td>
  353. </tr>
  354. </table>
  355. </div><div class="memdoc">
  356. <p>Rotates a 4 components vector by a quaternion. </p>
  357. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  358. </div>
  359. </div>
  360. <a id="ga03e61282831cc3f52cc76f72f52ad2c5"></a>
  361. <h2 class="memtitle"><span class="permalink"><a href="#ga03e61282831cc3f52cc76f72f52ad2c5">&#9670;&nbsp;</a></span>rotation()</h2>
  362. <div class="memitem">
  363. <div class="memproto">
  364. <table class="memname">
  365. <tr>
  366. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::rotation </td>
  367. <td>(</td>
  368. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  369. <td class="paramname"><em>orig</em>, </td>
  370. </tr>
  371. <tr>
  372. <td class="paramkey"></td>
  373. <td></td>
  374. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  375. <td class="paramname"><em>dest</em>&#160;</td>
  376. </tr>
  377. <tr>
  378. <td></td>
  379. <td>)</td>
  380. <td></td><td></td>
  381. </tr>
  382. </table>
  383. </div><div class="memdoc">
  384. <p>Compute the rotation between two vectors. </p>
  385. <p>param orig vector, needs to be normalized param dest vector, needs to be normalized</p>
  386. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  387. </div>
  388. </div>
  389. <a id="gadc576cc957adc2a568cdcbc3799175bc"></a>
  390. <h2 class="memtitle"><span class="permalink"><a href="#gadc576cc957adc2a568cdcbc3799175bc">&#9670;&nbsp;</a></span>shortMix()</h2>
  391. <div class="memitem">
  392. <div class="memproto">
  393. <table class="memname">
  394. <tr>
  395. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::shortMix </td>
  396. <td>(</td>
  397. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  398. <td class="paramname"><em>x</em>, </td>
  399. </tr>
  400. <tr>
  401. <td class="paramkey"></td>
  402. <td></td>
  403. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  404. <td class="paramname"><em>y</em>, </td>
  405. </tr>
  406. <tr>
  407. <td class="paramkey"></td>
  408. <td></td>
  409. <td class="paramtype">T const &amp;&#160;</td>
  410. <td class="paramname"><em>a</em>&#160;</td>
  411. </tr>
  412. <tr>
  413. <td></td>
  414. <td>)</td>
  415. <td></td><td></td>
  416. </tr>
  417. </table>
  418. </div><div class="memdoc">
  419. <p>Quaternion interpolation using the rotation short path. </p>
  420. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  421. </div>
  422. </div>
  423. <a id="ga0b9bf3459e132ad8a18fe970669e3e35"></a>
  424. <h2 class="memtitle"><span class="permalink"><a href="#ga0b9bf3459e132ad8a18fe970669e3e35">&#9670;&nbsp;</a></span>squad()</h2>
  425. <div class="memitem">
  426. <div class="memproto">
  427. <table class="memname">
  428. <tr>
  429. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::squad </td>
  430. <td>(</td>
  431. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  432. <td class="paramname"><em>q1</em>, </td>
  433. </tr>
  434. <tr>
  435. <td class="paramkey"></td>
  436. <td></td>
  437. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  438. <td class="paramname"><em>q2</em>, </td>
  439. </tr>
  440. <tr>
  441. <td class="paramkey"></td>
  442. <td></td>
  443. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  444. <td class="paramname"><em>s1</em>, </td>
  445. </tr>
  446. <tr>
  447. <td class="paramkey"></td>
  448. <td></td>
  449. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  450. <td class="paramname"><em>s2</em>, </td>
  451. </tr>
  452. <tr>
  453. <td class="paramkey"></td>
  454. <td></td>
  455. <td class="paramtype">T const &amp;&#160;</td>
  456. <td class="paramname"><em>h</em>&#160;</td>
  457. </tr>
  458. <tr>
  459. <td></td>
  460. <td>)</td>
  461. <td></td><td></td>
  462. </tr>
  463. </table>
  464. </div><div class="memdoc">
  465. <p>Compute a point on a path according squad equation. </p>
  466. <p>q1 and q2 are control points; s1 and s2 are intermediate control points.</p>
  467. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  468. </div>
  469. </div>
  470. <a id="gaab0afabb894b28a983fb8ec610409d56"></a>
  471. <h2 class="memtitle"><span class="permalink"><a href="#gaab0afabb894b28a983fb8ec610409d56">&#9670;&nbsp;</a></span>toMat3()</h2>
  472. <div class="memitem">
  473. <div class="memproto">
  474. <table class="memname">
  475. <tr>
  476. <td class="memname">GLM_FUNC_DECL mat&lt;3, 3, T, Q&gt; glm::toMat3 </td>
  477. <td>(</td>
  478. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  479. <td class="paramname"><em>x</em></td><td>)</td>
  480. <td></td>
  481. </tr>
  482. </table>
  483. </div><div class="memdoc">
  484. <p>Converts a quaternion to a 3 * 3 matrix. </p>
  485. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  486. <p class="definition">Definition at line <a class="el" href="a01373_source.html#l00113">113</a> of file <a class="el" href="a01373_source.html">gtx/quaternion.hpp</a>.</p>
  487. <p class="reference">References <a class="el" href="a00663.html#ga333ab70047fbe4132406100c292dbc89">glm::mat3_cast()</a>.</p>
  488. </div>
  489. </div>
  490. <a id="gadfa2c77094e8cc9adad321d938855ffb"></a>
  491. <h2 class="memtitle"><span class="permalink"><a href="#gadfa2c77094e8cc9adad321d938855ffb">&#9670;&nbsp;</a></span>toMat4()</h2>
  492. <div class="memitem">
  493. <div class="memproto">
  494. <table class="memname">
  495. <tr>
  496. <td class="memname">GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; glm::toMat4 </td>
  497. <td>(</td>
  498. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  499. <td class="paramname"><em>x</em></td><td>)</td>
  500. <td></td>
  501. </tr>
  502. </table>
  503. </div><div class="memdoc">
  504. <p>Converts a quaternion to a 4 * 4 matrix. </p>
  505. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  506. <p class="definition">Definition at line <a class="el" href="a01373_source.html#l00120">120</a> of file <a class="el" href="a01373_source.html">gtx/quaternion.hpp</a>.</p>
  507. <p class="reference">References <a class="el" href="a00663.html#ga1113212d9bdefc2e31ad40e5bbb506f3">glm::mat4_cast()</a>.</p>
  508. </div>
  509. </div>
  510. <a id="ga798de5d186499c9a9231cd92c8afaef1"></a>
  511. <h2 class="memtitle"><span class="permalink"><a href="#ga798de5d186499c9a9231cd92c8afaef1">&#9670;&nbsp;</a></span>toQuat() <span class="overload">[1/2]</span></h2>
  512. <div class="memitem">
  513. <div class="memproto">
  514. <table class="memname">
  515. <tr>
  516. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::toQuat </td>
  517. <td>(</td>
  518. <td class="paramtype">mat&lt; 3, 3, T, Q &gt; const &amp;&#160;</td>
  519. <td class="paramname"><em>x</em></td><td>)</td>
  520. <td></td>
  521. </tr>
  522. </table>
  523. </div><div class="memdoc">
  524. <p>Converts a 3 * 3 matrix to a quaternion. </p>
  525. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  526. <p class="definition">Definition at line <a class="el" href="a01373_source.html#l00127">127</a> of file <a class="el" href="a01373_source.html">gtx/quaternion.hpp</a>.</p>
  527. <p class="reference">References <a class="el" href="a00663.html#ga1108a4ab88ca87bac321454eea7702f8">glm::quat_cast()</a>.</p>
  528. </div>
  529. </div>
  530. <a id="ga5eb36f51e1638e710451eba194dbc011"></a>
  531. <h2 class="memtitle"><span class="permalink"><a href="#ga5eb36f51e1638e710451eba194dbc011">&#9670;&nbsp;</a></span>toQuat() <span class="overload">[2/2]</span></h2>
  532. <div class="memitem">
  533. <div class="memproto">
  534. <table class="memname">
  535. <tr>
  536. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::toQuat </td>
  537. <td>(</td>
  538. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  539. <td class="paramname"><em>x</em></td><td>)</td>
  540. <td></td>
  541. </tr>
  542. </table>
  543. </div><div class="memdoc">
  544. <p>Converts a 4 * 4 matrix to a quaternion. </p>
  545. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00769.html" title="Include &lt;glm/gtx/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
  546. <p class="definition">Definition at line <a class="el" href="a01373_source.html#l00134">134</a> of file <a class="el" href="a01373_source.html">gtx/quaternion.hpp</a>.</p>
  547. <p class="reference">References <a class="el" href="a00663.html#ga1108a4ab88ca87bac321454eea7702f8">glm::quat_cast()</a>.</p>
  548. </div>
  549. </div>
  550. </div><!-- contents -->
  551. <!-- start footer part -->
  552. <hr class="footer"/><address class="footer"><small>
  553. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  554. <img class="footer" src="doxygen.png" alt="doxygen"/>
  555. </a> 1.8.14
  556. </small></address>
  557. </body>
  558. </html>