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.

225 lines
10 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_GTX_matrix_interpolation</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_matrix_interpolation<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:gafefe32ce5a90a135287ba34fac3623bc"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  73. <tr class="memitem:gafefe32ce5a90a135287ba34fac3623bc"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00754.html#gafefe32ce5a90a135287ba34fac3623bc">axisAngle</a> (mat&lt; 4, 4, T, Q &gt; const &amp;Mat, vec&lt; 3, T, Q &gt; &amp;Axis, T &amp;Angle)</td></tr>
  74. <tr class="separator:gafefe32ce5a90a135287ba34fac3623bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:ga3a788e2f5223397df5c426413ecc2f6b"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:ga3a788e2f5223397df5c426413ecc2f6b"><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="a00754.html#ga3a788e2f5223397df5c426413ecc2f6b">axisAngleMatrix</a> (vec&lt; 3, T, Q &gt; const &amp;Axis, T const Angle)</td></tr>
  77. <tr class="separator:ga3a788e2f5223397df5c426413ecc2f6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:gabbc1c7385a145f04b5c54228965df145"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:gabbc1c7385a145f04b5c54228965df145"><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="a00754.html#gabbc1c7385a145f04b5c54228965df145">extractMatrixRotation</a> (mat&lt; 4, 4, T, Q &gt; const &amp;Mat)</td></tr>
  80. <tr class="separator:gabbc1c7385a145f04b5c54228965df145"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:ga4e67863d150724b10c1ac00972dc958c"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  82. <tr class="memitem:ga4e67863d150724b10c1ac00972dc958c"><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="a00754.html#ga4e67863d150724b10c1ac00972dc958c">interpolate</a> (mat&lt; 4, 4, T, Q &gt; const &amp;m1, mat&lt; 4, 4, T, Q &gt; const &amp;m2, T const Delta)</td></tr>
  83. <tr class="separator:ga4e67863d150724b10c1ac00972dc958c"><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>Include &lt;<a class="el" href="a00524.html" title="GLM_GTX_matrix_interpolation ">glm/gtx/matrix_interpolation.hpp</a>&gt; to use the features of this extension. </p>
  87. <p>Allows to directly interpolate two matrices. </p>
  88. <h2 class="groupheader">Function Documentation</h2>
  89. <a id="gafefe32ce5a90a135287ba34fac3623bc"></a>
  90. <h2 class="memtitle"><span class="permalink"><a href="#gafefe32ce5a90a135287ba34fac3623bc">&#9670;&nbsp;</a></span>axisAngle()</h2>
  91. <div class="memitem">
  92. <div class="memproto">
  93. <table class="memname">
  94. <tr>
  95. <td class="memname">GLM_FUNC_DECL void glm::axisAngle </td>
  96. <td>(</td>
  97. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  98. <td class="paramname"><em>Mat</em>, </td>
  99. </tr>
  100. <tr>
  101. <td class="paramkey"></td>
  102. <td></td>
  103. <td class="paramtype">vec&lt; 3, T, Q &gt; &amp;&#160;</td>
  104. <td class="paramname"><em>Axis</em>, </td>
  105. </tr>
  106. <tr>
  107. <td class="paramkey"></td>
  108. <td></td>
  109. <td class="paramtype">T &amp;&#160;</td>
  110. <td class="paramname"><em>Angle</em>&#160;</td>
  111. </tr>
  112. <tr>
  113. <td></td>
  114. <td>)</td>
  115. <td></td><td></td>
  116. </tr>
  117. </table>
  118. </div><div class="memdoc">
  119. <p>Get the axis and angle of the rotation from a matrix. </p>
  120. <p>From GLM_GTX_matrix_interpolation extension. </p>
  121. </div>
  122. </div>
  123. <a id="ga3a788e2f5223397df5c426413ecc2f6b"></a>
  124. <h2 class="memtitle"><span class="permalink"><a href="#ga3a788e2f5223397df5c426413ecc2f6b">&#9670;&nbsp;</a></span>axisAngleMatrix()</h2>
  125. <div class="memitem">
  126. <div class="memproto">
  127. <table class="memname">
  128. <tr>
  129. <td class="memname">GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; glm::axisAngleMatrix </td>
  130. <td>(</td>
  131. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  132. <td class="paramname"><em>Axis</em>, </td>
  133. </tr>
  134. <tr>
  135. <td class="paramkey"></td>
  136. <td></td>
  137. <td class="paramtype">T const&#160;</td>
  138. <td class="paramname"><em>Angle</em>&#160;</td>
  139. </tr>
  140. <tr>
  141. <td></td>
  142. <td>)</td>
  143. <td></td><td></td>
  144. </tr>
  145. </table>
  146. </div><div class="memdoc">
  147. <p>Build a matrix from axis and angle. </p>
  148. <p>From GLM_GTX_matrix_interpolation extension. </p>
  149. </div>
  150. </div>
  151. <a id="gabbc1c7385a145f04b5c54228965df145"></a>
  152. <h2 class="memtitle"><span class="permalink"><a href="#gabbc1c7385a145f04b5c54228965df145">&#9670;&nbsp;</a></span>extractMatrixRotation()</h2>
  153. <div class="memitem">
  154. <div class="memproto">
  155. <table class="memname">
  156. <tr>
  157. <td class="memname">GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; glm::extractMatrixRotation </td>
  158. <td>(</td>
  159. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  160. <td class="paramname"><em>Mat</em></td><td>)</td>
  161. <td></td>
  162. </tr>
  163. </table>
  164. </div><div class="memdoc">
  165. <p>Extracts the rotation part of a matrix. </p>
  166. <p>From GLM_GTX_matrix_interpolation extension. </p>
  167. </div>
  168. </div>
  169. <a id="ga4e67863d150724b10c1ac00972dc958c"></a>
  170. <h2 class="memtitle"><span class="permalink"><a href="#ga4e67863d150724b10c1ac00972dc958c">&#9670;&nbsp;</a></span>interpolate()</h2>
  171. <div class="memitem">
  172. <div class="memproto">
  173. <table class="memname">
  174. <tr>
  175. <td class="memname">GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; glm::interpolate </td>
  176. <td>(</td>
  177. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  178. <td class="paramname"><em>m1</em>, </td>
  179. </tr>
  180. <tr>
  181. <td class="paramkey"></td>
  182. <td></td>
  183. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  184. <td class="paramname"><em>m2</em>, </td>
  185. </tr>
  186. <tr>
  187. <td class="paramkey"></td>
  188. <td></td>
  189. <td class="paramtype">T const&#160;</td>
  190. <td class="paramname"><em>Delta</em>&#160;</td>
  191. </tr>
  192. <tr>
  193. <td></td>
  194. <td>)</td>
  195. <td></td><td></td>
  196. </tr>
  197. </table>
  198. </div><div class="memdoc">
  199. <p>Build a interpolation of 4 * 4 matrixes. </p>
  200. <p>From GLM_GTX_matrix_interpolation extension. Warning! works only with rotation and/or translation matrixes, scale will generate unexpected results. </p>
  201. </div>
  202. </div>
  203. </div><!-- contents -->
  204. <!-- start footer part -->
  205. <hr class="footer"/><address class="footer"><small>
  206. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  207. <img class="footer" src="doxygen.png" alt="doxygen"/>
  208. </a> 1.8.14
  209. </small></address>
  210. </body>
  211. </html>