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.

487 regels
22 KiB

5 jaren geleden
  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_vector</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_vector<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:ga1a32fceb71962e6160e8af295c91930a"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  73. <tr class="memitem:ga1a32fceb71962e6160e8af295c91930a"><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="a00773.html#ga1a32fceb71962e6160e8af295c91930a">orientation</a> (vec&lt; 3, T, Q &gt; const &amp;Normal, vec&lt; 3, T, Q &gt; const &amp;Up)</td></tr>
  74. <tr class="separator:ga1a32fceb71962e6160e8af295c91930a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:gab64a67b52ff4f86c3ba16595a5a25af6"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:gab64a67b52ff4f86c3ba16595a5a25af6"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; 2, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00773.html#gab64a67b52ff4f86c3ba16595a5a25af6">rotate</a> (vec&lt; 2, T, Q &gt; const &amp;v, T const &amp;angle)</td></tr>
  77. <tr class="separator:gab64a67b52ff4f86c3ba16595a5a25af6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga1ba501ef83d1a009a17ac774cc560f21"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:ga1ba501ef83d1a009a17ac774cc560f21"><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="a00773.html#ga1ba501ef83d1a009a17ac774cc560f21">rotate</a> (vec&lt; 3, T, Q &gt; const &amp;v, T const &amp;angle, vec&lt; 3, T, Q &gt; const &amp;normal)</td></tr>
  80. <tr class="separator:ga1ba501ef83d1a009a17ac774cc560f21"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:ga1005f1267ed9c57faa3f24cf6873b961"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  82. <tr class="memitem:ga1005f1267ed9c57faa3f24cf6873b961"><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="a00773.html#ga1005f1267ed9c57faa3f24cf6873b961">rotate</a> (vec&lt; 4, T, Q &gt; const &amp;v, T const &amp;angle, vec&lt; 3, T, Q &gt; const &amp;normal)</td></tr>
  83. <tr class="separator:ga1005f1267ed9c57faa3f24cf6873b961"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:ga059fdbdba4cca35cdff172a9d0d0afc9"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  85. <tr class="memitem:ga059fdbdba4cca35cdff172a9d0d0afc9"><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="a00773.html#ga059fdbdba4cca35cdff172a9d0d0afc9">rotateX</a> (vec&lt; 3, T, Q &gt; const &amp;v, T const &amp;angle)</td></tr>
  86. <tr class="separator:ga059fdbdba4cca35cdff172a9d0d0afc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:ga4333b1ea8ebf1bd52bc3801a7617398a"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  88. <tr class="memitem:ga4333b1ea8ebf1bd52bc3801a7617398a"><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="a00773.html#ga4333b1ea8ebf1bd52bc3801a7617398a">rotateX</a> (vec&lt; 4, T, Q &gt; const &amp;v, T const &amp;angle)</td></tr>
  89. <tr class="separator:ga4333b1ea8ebf1bd52bc3801a7617398a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:gaebdc8b054ace27d9f62e054531c6f44d"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  91. <tr class="memitem:gaebdc8b054ace27d9f62e054531c6f44d"><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="a00773.html#gaebdc8b054ace27d9f62e054531c6f44d">rotateY</a> (vec&lt; 3, T, Q &gt; const &amp;v, T const &amp;angle)</td></tr>
  92. <tr class="separator:gaebdc8b054ace27d9f62e054531c6f44d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:ga3ce3db0867b7f8efd878ee34f95a623b"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  94. <tr class="memitem:ga3ce3db0867b7f8efd878ee34f95a623b"><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="a00773.html#ga3ce3db0867b7f8efd878ee34f95a623b">rotateY</a> (vec&lt; 4, T, Q &gt; const &amp;v, T const &amp;angle)</td></tr>
  95. <tr class="separator:ga3ce3db0867b7f8efd878ee34f95a623b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:ga5a048838a03f6249acbacb4dbacf79c4"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  97. <tr class="memitem:ga5a048838a03f6249acbacb4dbacf79c4"><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="a00773.html#ga5a048838a03f6249acbacb4dbacf79c4">rotateZ</a> (vec&lt; 3, T, Q &gt; const &amp;v, T const &amp;angle)</td></tr>
  98. <tr class="separator:ga5a048838a03f6249acbacb4dbacf79c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:ga923b75c6448161053768822d880702e6"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  100. <tr class="memitem:ga923b75c6448161053768822d880702e6"><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="a00773.html#ga923b75c6448161053768822d880702e6">rotateZ</a> (vec&lt; 4, T, Q &gt; const &amp;v, T const &amp;angle)</td></tr>
  101. <tr class="separator:ga923b75c6448161053768822d880702e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:ga8b11b18ce824174ea1a5a69ea14e2cee"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  103. <tr class="memitem:ga8b11b18ce824174ea1a5a69ea14e2cee"><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="a00773.html#ga8b11b18ce824174ea1a5a69ea14e2cee">slerp</a> (vec&lt; 3, T, Q &gt; const &amp;x, vec&lt; 3, T, Q &gt; const &amp;y, T const &amp;a)</td></tr>
  104. <tr class="separator:ga8b11b18ce824174ea1a5a69ea14e2cee"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. </table>
  106. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  107. <p>Include &lt;<a class="el" href="a00578.html" title="GLM_GTX_rotate_vector ">glm/gtx/rotate_vector.hpp</a>&gt; to use the features of this extension. </p>
  108. <p>Function to directly rotate a vector </p>
  109. <h2 class="groupheader">Function Documentation</h2>
  110. <a id="ga1a32fceb71962e6160e8af295c91930a"></a>
  111. <h2 class="memtitle"><span class="permalink"><a href="#ga1a32fceb71962e6160e8af295c91930a">&#9670;&nbsp;</a></span>orientation()</h2>
  112. <div class="memitem">
  113. <div class="memproto">
  114. <table class="memname">
  115. <tr>
  116. <td class="memname">GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; glm::orientation </td>
  117. <td>(</td>
  118. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  119. <td class="paramname"><em>Normal</em>, </td>
  120. </tr>
  121. <tr>
  122. <td class="paramkey"></td>
  123. <td></td>
  124. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  125. <td class="paramname"><em>Up</em>&#160;</td>
  126. </tr>
  127. <tr>
  128. <td></td>
  129. <td>)</td>
  130. <td></td><td></td>
  131. </tr>
  132. </table>
  133. </div><div class="memdoc">
  134. <p>Build a rotation matrix from a normal and a up vector. </p>
  135. <p>From GLM_GTX_rotate_vector extension. </p>
  136. </div>
  137. </div>
  138. <a id="gab64a67b52ff4f86c3ba16595a5a25af6"></a>
  139. <h2 class="memtitle"><span class="permalink"><a href="#gab64a67b52ff4f86c3ba16595a5a25af6">&#9670;&nbsp;</a></span>rotate() <span class="overload">[1/3]</span></h2>
  140. <div class="memitem">
  141. <div class="memproto">
  142. <table class="memname">
  143. <tr>
  144. <td class="memname">GLM_FUNC_DECL vec&lt;2, T, Q&gt; glm::rotate </td>
  145. <td>(</td>
  146. <td class="paramtype">vec&lt; 2, T, Q &gt; const &amp;&#160;</td>
  147. <td class="paramname"><em>v</em>, </td>
  148. </tr>
  149. <tr>
  150. <td class="paramkey"></td>
  151. <td></td>
  152. <td class="paramtype">T const &amp;&#160;</td>
  153. <td class="paramname"><em>angle</em>&#160;</td>
  154. </tr>
  155. <tr>
  156. <td></td>
  157. <td>)</td>
  158. <td></td><td></td>
  159. </tr>
  160. </table>
  161. </div><div class="memdoc">
  162. <p>Rotate a two dimensional vector. </p>
  163. <p>From GLM_GTX_rotate_vector extension. </p>
  164. </div>
  165. </div>
  166. <a id="ga1ba501ef83d1a009a17ac774cc560f21"></a>
  167. <h2 class="memtitle"><span class="permalink"><a href="#ga1ba501ef83d1a009a17ac774cc560f21">&#9670;&nbsp;</a></span>rotate() <span class="overload">[2/3]</span></h2>
  168. <div class="memitem">
  169. <div class="memproto">
  170. <table class="memname">
  171. <tr>
  172. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::rotate </td>
  173. <td>(</td>
  174. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  175. <td class="paramname"><em>v</em>, </td>
  176. </tr>
  177. <tr>
  178. <td class="paramkey"></td>
  179. <td></td>
  180. <td class="paramtype">T const &amp;&#160;</td>
  181. <td class="paramname"><em>angle</em>, </td>
  182. </tr>
  183. <tr>
  184. <td class="paramkey"></td>
  185. <td></td>
  186. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  187. <td class="paramname"><em>normal</em>&#160;</td>
  188. </tr>
  189. <tr>
  190. <td></td>
  191. <td>)</td>
  192. <td></td><td></td>
  193. </tr>
  194. </table>
  195. </div><div class="memdoc">
  196. <p>Rotate a three dimensional vector around an axis. </p>
  197. <p>From GLM_GTX_rotate_vector extension. </p>
  198. </div>
  199. </div>
  200. <a id="ga1005f1267ed9c57faa3f24cf6873b961"></a>
  201. <h2 class="memtitle"><span class="permalink"><a href="#ga1005f1267ed9c57faa3f24cf6873b961">&#9670;&nbsp;</a></span>rotate() <span class="overload">[3/3]</span></h2>
  202. <div class="memitem">
  203. <div class="memproto">
  204. <table class="memname">
  205. <tr>
  206. <td class="memname">GLM_FUNC_DECL vec&lt;4, T, Q&gt; glm::rotate </td>
  207. <td>(</td>
  208. <td class="paramtype">vec&lt; 4, T, Q &gt; const &amp;&#160;</td>
  209. <td class="paramname"><em>v</em>, </td>
  210. </tr>
  211. <tr>
  212. <td class="paramkey"></td>
  213. <td></td>
  214. <td class="paramtype">T const &amp;&#160;</td>
  215. <td class="paramname"><em>angle</em>, </td>
  216. </tr>
  217. <tr>
  218. <td class="paramkey"></td>
  219. <td></td>
  220. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  221. <td class="paramname"><em>normal</em>&#160;</td>
  222. </tr>
  223. <tr>
  224. <td></td>
  225. <td>)</td>
  226. <td></td><td></td>
  227. </tr>
  228. </table>
  229. </div><div class="memdoc">
  230. <p>Rotate a four dimensional vector around an axis. </p>
  231. <p>From GLM_GTX_rotate_vector extension. </p>
  232. </div>
  233. </div>
  234. <a id="ga059fdbdba4cca35cdff172a9d0d0afc9"></a>
  235. <h2 class="memtitle"><span class="permalink"><a href="#ga059fdbdba4cca35cdff172a9d0d0afc9">&#9670;&nbsp;</a></span>rotateX() <span class="overload">[1/2]</span></h2>
  236. <div class="memitem">
  237. <div class="memproto">
  238. <table class="memname">
  239. <tr>
  240. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::rotateX </td>
  241. <td>(</td>
  242. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  243. <td class="paramname"><em>v</em>, </td>
  244. </tr>
  245. <tr>
  246. <td class="paramkey"></td>
  247. <td></td>
  248. <td class="paramtype">T const &amp;&#160;</td>
  249. <td class="paramname"><em>angle</em>&#160;</td>
  250. </tr>
  251. <tr>
  252. <td></td>
  253. <td>)</td>
  254. <td></td><td></td>
  255. </tr>
  256. </table>
  257. </div><div class="memdoc">
  258. <p>Rotate a three dimensional vector around the X axis. </p>
  259. <p>From GLM_GTX_rotate_vector extension. </p>
  260. </div>
  261. </div>
  262. <a id="ga4333b1ea8ebf1bd52bc3801a7617398a"></a>
  263. <h2 class="memtitle"><span class="permalink"><a href="#ga4333b1ea8ebf1bd52bc3801a7617398a">&#9670;&nbsp;</a></span>rotateX() <span class="overload">[2/2]</span></h2>
  264. <div class="memitem">
  265. <div class="memproto">
  266. <table class="memname">
  267. <tr>
  268. <td class="memname">GLM_FUNC_DECL vec&lt;4, T, Q&gt; glm::rotateX </td>
  269. <td>(</td>
  270. <td class="paramtype">vec&lt; 4, T, Q &gt; const &amp;&#160;</td>
  271. <td class="paramname"><em>v</em>, </td>
  272. </tr>
  273. <tr>
  274. <td class="paramkey"></td>
  275. <td></td>
  276. <td class="paramtype">T const &amp;&#160;</td>
  277. <td class="paramname"><em>angle</em>&#160;</td>
  278. </tr>
  279. <tr>
  280. <td></td>
  281. <td>)</td>
  282. <td></td><td></td>
  283. </tr>
  284. </table>
  285. </div><div class="memdoc">
  286. <p>Rotate a four dimensional vector around the X axis. </p>
  287. <p>From GLM_GTX_rotate_vector extension. </p>
  288. </div>
  289. </div>
  290. <a id="gaebdc8b054ace27d9f62e054531c6f44d"></a>
  291. <h2 class="memtitle"><span class="permalink"><a href="#gaebdc8b054ace27d9f62e054531c6f44d">&#9670;&nbsp;</a></span>rotateY() <span class="overload">[1/2]</span></h2>
  292. <div class="memitem">
  293. <div class="memproto">
  294. <table class="memname">
  295. <tr>
  296. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::rotateY </td>
  297. <td>(</td>
  298. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  299. <td class="paramname"><em>v</em>, </td>
  300. </tr>
  301. <tr>
  302. <td class="paramkey"></td>
  303. <td></td>
  304. <td class="paramtype">T const &amp;&#160;</td>
  305. <td class="paramname"><em>angle</em>&#160;</td>
  306. </tr>
  307. <tr>
  308. <td></td>
  309. <td>)</td>
  310. <td></td><td></td>
  311. </tr>
  312. </table>
  313. </div><div class="memdoc">
  314. <p>Rotate a three dimensional vector around the Y axis. </p>
  315. <p>From GLM_GTX_rotate_vector extension. </p>
  316. </div>
  317. </div>
  318. <a id="ga3ce3db0867b7f8efd878ee34f95a623b"></a>
  319. <h2 class="memtitle"><span class="permalink"><a href="#ga3ce3db0867b7f8efd878ee34f95a623b">&#9670;&nbsp;</a></span>rotateY() <span class="overload">[2/2]</span></h2>
  320. <div class="memitem">
  321. <div class="memproto">
  322. <table class="memname">
  323. <tr>
  324. <td class="memname">GLM_FUNC_DECL vec&lt;4, T, Q&gt; glm::rotateY </td>
  325. <td>(</td>
  326. <td class="paramtype">vec&lt; 4, T, Q &gt; const &amp;&#160;</td>
  327. <td class="paramname"><em>v</em>, </td>
  328. </tr>
  329. <tr>
  330. <td class="paramkey"></td>
  331. <td></td>
  332. <td class="paramtype">T const &amp;&#160;</td>
  333. <td class="paramname"><em>angle</em>&#160;</td>
  334. </tr>
  335. <tr>
  336. <td></td>
  337. <td>)</td>
  338. <td></td><td></td>
  339. </tr>
  340. </table>
  341. </div><div class="memdoc">
  342. <p>Rotate a four dimensional vector around the Y axis. </p>
  343. <p>From GLM_GTX_rotate_vector extension. </p>
  344. </div>
  345. </div>
  346. <a id="ga5a048838a03f6249acbacb4dbacf79c4"></a>
  347. <h2 class="memtitle"><span class="permalink"><a href="#ga5a048838a03f6249acbacb4dbacf79c4">&#9670;&nbsp;</a></span>rotateZ() <span class="overload">[1/2]</span></h2>
  348. <div class="memitem">
  349. <div class="memproto">
  350. <table class="memname">
  351. <tr>
  352. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::rotateZ </td>
  353. <td>(</td>
  354. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  355. <td class="paramname"><em>v</em>, </td>
  356. </tr>
  357. <tr>
  358. <td class="paramkey"></td>
  359. <td></td>
  360. <td class="paramtype">T const &amp;&#160;</td>
  361. <td class="paramname"><em>angle</em>&#160;</td>
  362. </tr>
  363. <tr>
  364. <td></td>
  365. <td>)</td>
  366. <td></td><td></td>
  367. </tr>
  368. </table>
  369. </div><div class="memdoc">
  370. <p>Rotate a three dimensional vector around the Z axis. </p>
  371. <p>From GLM_GTX_rotate_vector extension. </p>
  372. </div>
  373. </div>
  374. <a id="ga923b75c6448161053768822d880702e6"></a>
  375. <h2 class="memtitle"><span class="permalink"><a href="#ga923b75c6448161053768822d880702e6">&#9670;&nbsp;</a></span>rotateZ() <span class="overload">[2/2]</span></h2>
  376. <div class="memitem">
  377. <div class="memproto">
  378. <table class="memname">
  379. <tr>
  380. <td class="memname">GLM_FUNC_DECL vec&lt;4, T, Q&gt; glm::rotateZ </td>
  381. <td>(</td>
  382. <td class="paramtype">vec&lt; 4, T, Q &gt; const &amp;&#160;</td>
  383. <td class="paramname"><em>v</em>, </td>
  384. </tr>
  385. <tr>
  386. <td class="paramkey"></td>
  387. <td></td>
  388. <td class="paramtype">T const &amp;&#160;</td>
  389. <td class="paramname"><em>angle</em>&#160;</td>
  390. </tr>
  391. <tr>
  392. <td></td>
  393. <td>)</td>
  394. <td></td><td></td>
  395. </tr>
  396. </table>
  397. </div><div class="memdoc">
  398. <p>Rotate a four dimensional vector around the Z axis. </p>
  399. <p>From GLM_GTX_rotate_vector extension. </p>
  400. </div>
  401. </div>
  402. <a id="ga8b11b18ce824174ea1a5a69ea14e2cee"></a>
  403. <h2 class="memtitle"><span class="permalink"><a href="#ga8b11b18ce824174ea1a5a69ea14e2cee">&#9670;&nbsp;</a></span>slerp()</h2>
  404. <div class="memitem">
  405. <div class="memproto">
  406. <table class="memname">
  407. <tr>
  408. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::slerp </td>
  409. <td>(</td>
  410. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  411. <td class="paramname"><em>x</em>, </td>
  412. </tr>
  413. <tr>
  414. <td class="paramkey"></td>
  415. <td></td>
  416. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  417. <td class="paramname"><em>y</em>, </td>
  418. </tr>
  419. <tr>
  420. <td class="paramkey"></td>
  421. <td></td>
  422. <td class="paramtype">T const &amp;&#160;</td>
  423. <td class="paramname"><em>a</em>&#160;</td>
  424. </tr>
  425. <tr>
  426. <td></td>
  427. <td>)</td>
  428. <td></td><td></td>
  429. </tr>
  430. </table>
  431. </div><div class="memdoc">
  432. <p>Returns Spherical interpolation between two vectors. </p>
  433. <dl class="params"><dt>Parameters</dt><dd>
  434. <table class="params">
  435. <tr><td class="paramname">x</td><td>A first vector </td></tr>
  436. <tr><td class="paramname">y</td><td>A second vector </td></tr>
  437. <tr><td class="paramname">a</td><td>Interpolation factor. The interpolation is defined beyond the range [0, 1].</td></tr>
  438. </table>
  439. </dd>
  440. </dl>
  441. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00773.html" title="Include &lt;glm/gtx/rotate_vector.hpp&gt; to use the features of this extension. ">GLM_GTX_rotate_vector</a> </dd></dl>
  442. </div>
  443. </div>
  444. </div><!-- contents -->
  445. <!-- start footer part -->
  446. <hr class="footer"/><address class="footer"><small>
  447. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  448. <img class="footer" src="doxygen.png" alt="doxygen"/>
  449. </a> 1.8.14
  450. </small></address>
  451. </body>
  452. </html>