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.

282 lines
13 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_transform</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_transform<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:gaab2d37ef7265819f1d2939b9dc2c52ac"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  73. <tr class="memitem:gaab2d37ef7265819f1d2939b9dc2c52ac"><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="a00677.html#gaab2d37ef7265819f1d2939b9dc2c52ac">exp</a> (qua&lt; T, Q &gt; const &amp;q)</td></tr>
  74. <tr class="separator:gaab2d37ef7265819f1d2939b9dc2c52ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:gaa5f7b20e296671b16ce25a2ab7ad5473"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:gaa5f7b20e296671b16ce25a2ab7ad5473"><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="a00677.html#gaa5f7b20e296671b16ce25a2ab7ad5473">log</a> (qua&lt; T, Q &gt; const &amp;q)</td></tr>
  77. <tr class="separator:gaa5f7b20e296671b16ce25a2ab7ad5473"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga4975ffcacd312a8c0bbd046a76c5607e"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:ga4975ffcacd312a8c0bbd046a76c5607e"><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="a00677.html#ga4975ffcacd312a8c0bbd046a76c5607e">pow</a> (qua&lt; T, Q &gt; const &amp;q, T y)</td></tr>
  80. <tr class="separator:ga4975ffcacd312a8c0bbd046a76c5607e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:gabfc57de6d4d2e11970f54119c5ccf0f5"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  82. <tr class="memitem:gabfc57de6d4d2e11970f54119c5ccf0f5"><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="a00677.html#gabfc57de6d4d2e11970f54119c5ccf0f5">rotate</a> (qua&lt; T, Q &gt; const &amp;q, T const &amp;angle, vec&lt; 3, T, Q &gt; const &amp;axis)</td></tr>
  83. <tr class="separator:gabfc57de6d4d2e11970f54119c5ccf0f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:ga64b7b255ed7bcba616fe6b44470b022e"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  85. <tr class="memitem:ga64b7b255ed7bcba616fe6b44470b022e"><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="a00677.html#ga64b7b255ed7bcba616fe6b44470b022e">sqrt</a> (qua&lt; T, Q &gt; const &amp;q)</td></tr>
  86. <tr class="separator:ga64b7b255ed7bcba616fe6b44470b022e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. </table>
  88. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  89. <p>Provides transformation functions for quaternion types. </p>
  90. <p>Include &lt;<a class="el" href="a00227.html" title="GLM_EXT_quaternion_transform ">glm/ext/quaternion_transform.hpp</a>&gt; to use the features of this extension.</p>
  91. <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>
  92. <dd>
  93. <a class="el" href="a00670.html" title="Exposes double-precision floating point quaternion type. ">GLM_EXT_quaternion_double</a> </dd>
  94. <dd>
  95. <a class="el" href="a00672.html" title="Provides exponential functions for quaternion types. ">GLM_EXT_quaternion_exponential</a> </dd>
  96. <dd>
  97. <a class="el" href="a00675.html" title="Provides geometric functions for quaternion types. ">GLM_EXT_quaternion_geometric</a> </dd>
  98. <dd>
  99. <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>
  100. <dd>
  101. <a class="el" href="a00678.html" title="Provides trigonometric functions for quaternion types. ">GLM_EXT_quaternion_trigonometric</a> </dd></dl>
  102. <h2 class="groupheader">Function Documentation</h2>
  103. <a id="gaab2d37ef7265819f1d2939b9dc2c52ac"></a>
  104. <h2 class="memtitle"><span class="permalink"><a href="#gaab2d37ef7265819f1d2939b9dc2c52ac">&#9670;&nbsp;</a></span>exp()</h2>
  105. <div class="memitem">
  106. <div class="memproto">
  107. <table class="memname">
  108. <tr>
  109. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::exp </td>
  110. <td>(</td>
  111. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  112. <td class="paramname"><em>q</em></td><td>)</td>
  113. <td></td>
  114. </tr>
  115. </table>
  116. </div><div class="memdoc">
  117. <p>Returns a exponential of a quaternion. </p>
  118. <dl class="tparams"><dt>Template Parameters</dt><dd>
  119. <table class="tparams">
  120. <tr><td class="paramname">T</td><td>A floating-point scalar type </td></tr>
  121. <tr><td class="paramname">Q</td><td>A value from qualifier enum </td></tr>
  122. </table>
  123. </dd>
  124. </dl>
  125. </div>
  126. </div>
  127. <a id="gaa5f7b20e296671b16ce25a2ab7ad5473"></a>
  128. <h2 class="memtitle"><span class="permalink"><a href="#gaa5f7b20e296671b16ce25a2ab7ad5473">&#9670;&nbsp;</a></span>log()</h2>
  129. <div class="memitem">
  130. <div class="memproto">
  131. <table class="memname">
  132. <tr>
  133. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::log </td>
  134. <td>(</td>
  135. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  136. <td class="paramname"><em>q</em></td><td>)</td>
  137. <td></td>
  138. </tr>
  139. </table>
  140. </div><div class="memdoc">
  141. <p>Returns a logarithm of a quaternion. </p>
  142. <dl class="tparams"><dt>Template Parameters</dt><dd>
  143. <table class="tparams">
  144. <tr><td class="paramname">T</td><td>A floating-point scalar type </td></tr>
  145. <tr><td class="paramname">Q</td><td>A value from qualifier enum </td></tr>
  146. </table>
  147. </dd>
  148. </dl>
  149. </div>
  150. </div>
  151. <a id="ga4975ffcacd312a8c0bbd046a76c5607e"></a>
  152. <h2 class="memtitle"><span class="permalink"><a href="#ga4975ffcacd312a8c0bbd046a76c5607e">&#9670;&nbsp;</a></span>pow()</h2>
  153. <div class="memitem">
  154. <div class="memproto">
  155. <table class="memname">
  156. <tr>
  157. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::pow </td>
  158. <td>(</td>
  159. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  160. <td class="paramname"><em>q</em>, </td>
  161. </tr>
  162. <tr>
  163. <td class="paramkey"></td>
  164. <td></td>
  165. <td class="paramtype">T&#160;</td>
  166. <td class="paramname"><em>y</em>&#160;</td>
  167. </tr>
  168. <tr>
  169. <td></td>
  170. <td>)</td>
  171. <td></td><td></td>
  172. </tr>
  173. </table>
  174. </div><div class="memdoc">
  175. <p>Returns a quaternion raised to a power. </p>
  176. <dl class="tparams"><dt>Template Parameters</dt><dd>
  177. <table class="tparams">
  178. <tr><td class="paramname">T</td><td>A floating-point scalar type </td></tr>
  179. <tr><td class="paramname">Q</td><td>A value from qualifier enum </td></tr>
  180. </table>
  181. </dd>
  182. </dl>
  183. </div>
  184. </div>
  185. <a id="gabfc57de6d4d2e11970f54119c5ccf0f5"></a>
  186. <h2 class="memtitle"><span class="permalink"><a href="#gabfc57de6d4d2e11970f54119c5ccf0f5">&#9670;&nbsp;</a></span>rotate()</h2>
  187. <div class="memitem">
  188. <div class="memproto">
  189. <table class="memname">
  190. <tr>
  191. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::rotate </td>
  192. <td>(</td>
  193. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  194. <td class="paramname"><em>q</em>, </td>
  195. </tr>
  196. <tr>
  197. <td class="paramkey"></td>
  198. <td></td>
  199. <td class="paramtype">T const &amp;&#160;</td>
  200. <td class="paramname"><em>angle</em>, </td>
  201. </tr>
  202. <tr>
  203. <td class="paramkey"></td>
  204. <td></td>
  205. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  206. <td class="paramname"><em>axis</em>&#160;</td>
  207. </tr>
  208. <tr>
  209. <td></td>
  210. <td>)</td>
  211. <td></td><td></td>
  212. </tr>
  213. </table>
  214. </div><div class="memdoc">
  215. <p>Rotates a quaternion from a vector of 3 components axis and an angle. </p>
  216. <dl class="params"><dt>Parameters</dt><dd>
  217. <table class="params">
  218. <tr><td class="paramname">q</td><td>Source orientation </td></tr>
  219. <tr><td class="paramname">angle</td><td>Angle expressed in radians. </td></tr>
  220. <tr><td class="paramname">axis</td><td>Axis of the rotation</td></tr>
  221. </table>
  222. </dd>
  223. </dl>
  224. <dl class="tparams"><dt>Template Parameters</dt><dd>
  225. <table class="tparams">
  226. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  227. <tr><td class="paramname">Q</td><td>Value from qualifier enum </td></tr>
  228. </table>
  229. </dd>
  230. </dl>
  231. </div>
  232. </div>
  233. <a id="ga64b7b255ed7bcba616fe6b44470b022e"></a>
  234. <h2 class="memtitle"><span class="permalink"><a href="#ga64b7b255ed7bcba616fe6b44470b022e">&#9670;&nbsp;</a></span>sqrt()</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::sqrt </td>
  240. <td>(</td>
  241. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  242. <td class="paramname"><em>q</em></td><td>)</td>
  243. <td></td>
  244. </tr>
  245. </table>
  246. </div><div class="memdoc">
  247. <p>Returns the square root of a quaternion. </p>
  248. <dl class="tparams"><dt>Template Parameters</dt><dd>
  249. <table class="tparams">
  250. <tr><td class="paramname">T</td><td>A floating-point scalar type </td></tr>
  251. <tr><td class="paramname">Q</td><td>A value from qualifier enum </td></tr>
  252. </table>
  253. </dd>
  254. </dl>
  255. </div>
  256. </div>
  257. </div><!-- contents -->
  258. <!-- start footer part -->
  259. <hr class="footer"/><address class="footer"><small>
  260. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  261. <img class="footer" src="doxygen.png" alt="doxygen"/>
  262. </a> 1.8.14
  263. </small></address>
  264. </body>
  265. </html>