Platformer in OpenGL
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

195 righe
8.8 KiB

5 anni fa
  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_rotate_normalized_axis</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_rotate_normalized_axis<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:ga50efd7ebca0f7a603bb3cc11e34c708d"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  73. <tr class="memitem:ga50efd7ebca0f7a603bb3cc11e34c708d"><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="a00772.html#ga50efd7ebca0f7a603bb3cc11e34c708d">rotateNormalizedAxis</a> (mat&lt; 4, 4, T, Q &gt; const &amp;m, T const &amp;angle, vec&lt; 3, T, Q &gt; const &amp;axis)</td></tr>
  74. <tr class="separator:ga50efd7ebca0f7a603bb3cc11e34c708d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:ga08f9c5411437d528019a25bfc01473d1"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:ga08f9c5411437d528019a25bfc01473d1"><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="a00772.html#ga08f9c5411437d528019a25bfc01473d1">rotateNormalizedAxis</a> (qua&lt; T, Q &gt; const &amp;q, T const &amp;angle, vec&lt; 3, T, Q &gt; const &amp;axis)</td></tr>
  77. <tr class="separator:ga08f9c5411437d528019a25bfc01473d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. </table>
  79. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  80. <p>Include &lt;<a class="el" href="a00575.html" title="GLM_GTX_rotate_normalized_axis ">glm/gtx/rotate_normalized_axis.hpp</a>&gt; to use the features of this extension. </p>
  81. <p>Quaternions and matrices rotations around normalized axis. </p>
  82. <h2 class="groupheader">Function Documentation</h2>
  83. <a id="ga50efd7ebca0f7a603bb3cc11e34c708d"></a>
  84. <h2 class="memtitle"><span class="permalink"><a href="#ga50efd7ebca0f7a603bb3cc11e34c708d">&#9670;&nbsp;</a></span>rotateNormalizedAxis() <span class="overload">[1/2]</span></h2>
  85. <div class="memitem">
  86. <div class="memproto">
  87. <table class="memname">
  88. <tr>
  89. <td class="memname">GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; glm::rotateNormalizedAxis </td>
  90. <td>(</td>
  91. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  92. <td class="paramname"><em>m</em>, </td>
  93. </tr>
  94. <tr>
  95. <td class="paramkey"></td>
  96. <td></td>
  97. <td class="paramtype">T const &amp;&#160;</td>
  98. <td class="paramname"><em>angle</em>, </td>
  99. </tr>
  100. <tr>
  101. <td class="paramkey"></td>
  102. <td></td>
  103. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  104. <td class="paramname"><em>axis</em>&#160;</td>
  105. </tr>
  106. <tr>
  107. <td></td>
  108. <td>)</td>
  109. <td></td><td></td>
  110. </tr>
  111. </table>
  112. </div><div class="memdoc">
  113. <p>Builds a rotation 4 * 4 matrix created from a normalized axis and an angle. </p>
  114. <dl class="params"><dt>Parameters</dt><dd>
  115. <table class="params">
  116. <tr><td class="paramname">m</td><td>Input matrix multiplied by this rotation matrix. </td></tr>
  117. <tr><td class="paramname">angle</td><td>Rotation angle expressed in radians. </td></tr>
  118. <tr><td class="paramname">axis</td><td>Rotation axis, must be normalized. </td></tr>
  119. </table>
  120. </dd>
  121. </dl>
  122. <dl class="tparams"><dt>Template Parameters</dt><dd>
  123. <table class="tparams">
  124. <tr><td class="paramname">T</td><td>Value type used to build the matrix. Currently supported: half (not recommended), float or double.</td></tr>
  125. </table>
  126. </dd>
  127. </dl>
  128. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00772.html" title="Include &lt;glm/gtx/rotate_normalized_axis.hpp&gt; to use the features of this extension. ">GLM_GTX_rotate_normalized_axis</a> </dd>
  129. <dd>
  130. - rotate(T angle, T x, T y, T z) </dd>
  131. <dd>
  132. - rotate(mat&lt;4, 4, T, Q&gt; const&amp; m, T angle, T x, T y, T z) </dd>
  133. <dd>
  134. - rotate(T angle, vec&lt;3, T, Q&gt; const&amp; v) </dd></dl>
  135. </div>
  136. </div>
  137. <a id="ga08f9c5411437d528019a25bfc01473d1"></a>
  138. <h2 class="memtitle"><span class="permalink"><a href="#ga08f9c5411437d528019a25bfc01473d1">&#9670;&nbsp;</a></span>rotateNormalizedAxis() <span class="overload">[2/2]</span></h2>
  139. <div class="memitem">
  140. <div class="memproto">
  141. <table class="memname">
  142. <tr>
  143. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::rotateNormalizedAxis </td>
  144. <td>(</td>
  145. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  146. <td class="paramname"><em>q</em>, </td>
  147. </tr>
  148. <tr>
  149. <td class="paramkey"></td>
  150. <td></td>
  151. <td class="paramtype">T const &amp;&#160;</td>
  152. <td class="paramname"><em>angle</em>, </td>
  153. </tr>
  154. <tr>
  155. <td class="paramkey"></td>
  156. <td></td>
  157. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  158. <td class="paramname"><em>axis</em>&#160;</td>
  159. </tr>
  160. <tr>
  161. <td></td>
  162. <td>)</td>
  163. <td></td><td></td>
  164. </tr>
  165. </table>
  166. </div><div class="memdoc">
  167. <p>Rotates a quaternion from a vector of 3 components normalized axis and an angle. </p>
  168. <dl class="params"><dt>Parameters</dt><dd>
  169. <table class="params">
  170. <tr><td class="paramname">q</td><td>Source orientation </td></tr>
  171. <tr><td class="paramname">angle</td><td>Angle expressed in radians. </td></tr>
  172. <tr><td class="paramname">axis</td><td>Normalized axis of the rotation, must be normalized.</td></tr>
  173. </table>
  174. </dd>
  175. </dl>
  176. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00772.html" title="Include &lt;glm/gtx/rotate_normalized_axis.hpp&gt; to use the features of this extension. ">GLM_GTX_rotate_normalized_axis</a> </dd></dl>
  177. </div>
  178. </div>
  179. </div><!-- contents -->
  180. <!-- start footer part -->
  181. <hr class="footer"/><address class="footer"><small>
  182. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  183. <img class="footer" src="doxygen.png" alt="doxygen"/>
  184. </a> 1.8.14
  185. </small></address>
  186. </body>
  187. </html>