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.

618 lines
30 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_GTC_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_GTC_quaternion<div class="ingroups"><a class="el" href="a00704.html">Recommended 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:gaf4dd967dead22dd932fc7460ceecb03f"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  73. <tr class="memitem:gaf4dd967dead22dd932fc7460ceecb03f"><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="a00663.html#gaf4dd967dead22dd932fc7460ceecb03f">eulerAngles</a> (qua&lt; T, Q &gt; const &amp;x)</td></tr>
  74. <tr class="separator:gaf4dd967dead22dd932fc7460ceecb03f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:ga8f7fa76e06c417b757ddfd438f3f677b"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:ga8f7fa76e06c417b757ddfd438f3f677b"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; 4, bool, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00663.html#ga8f7fa76e06c417b757ddfd438f3f677b">greaterThan</a> (qua&lt; T, Q &gt; const &amp;x, qua&lt; T, Q &gt; const &amp;y)</td></tr>
  77. <tr class="separator:ga8f7fa76e06c417b757ddfd438f3f677b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga388cbeba987dae7b5937f742efa49a5a"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:ga388cbeba987dae7b5937f742efa49a5a"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; 4, bool, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00663.html#ga388cbeba987dae7b5937f742efa49a5a">greaterThanEqual</a> (qua&lt; T, Q &gt; const &amp;x, qua&lt; T, Q &gt; const &amp;y)</td></tr>
  80. <tr class="separator:ga388cbeba987dae7b5937f742efa49a5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:gad091a2d22c8acfebfa92bcfca1dfe9c4"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  82. <tr class="memitem:gad091a2d22c8acfebfa92bcfca1dfe9c4"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; 4, bool, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00663.html#gad091a2d22c8acfebfa92bcfca1dfe9c4">lessThan</a> (qua&lt; T, Q &gt; const &amp;x, qua&lt; T, Q &gt; const &amp;y)</td></tr>
  83. <tr class="separator:gad091a2d22c8acfebfa92bcfca1dfe9c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:gac00012eea281800d2403f4ea8443134d"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  85. <tr class="memitem:gac00012eea281800d2403f4ea8443134d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; 4, bool, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00663.html#gac00012eea281800d2403f4ea8443134d">lessThanEqual</a> (qua&lt; T, Q &gt; const &amp;x, qua&lt; T, Q &gt; const &amp;y)</td></tr>
  86. <tr class="separator:gac00012eea281800d2403f4ea8443134d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:ga333ab70047fbe4132406100c292dbc89"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  88. <tr class="memitem:ga333ab70047fbe4132406100c292dbc89"><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="a00663.html#ga333ab70047fbe4132406100c292dbc89">mat3_cast</a> (qua&lt; T, Q &gt; const &amp;x)</td></tr>
  89. <tr class="separator:ga333ab70047fbe4132406100c292dbc89"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:ga1113212d9bdefc2e31ad40e5bbb506f3"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  91. <tr class="memitem:ga1113212d9bdefc2e31ad40e5bbb506f3"><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="a00663.html#ga1113212d9bdefc2e31ad40e5bbb506f3">mat4_cast</a> (qua&lt; T, Q &gt; const &amp;x)</td></tr>
  92. <tr class="separator:ga1113212d9bdefc2e31ad40e5bbb506f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:ga7603e81477b46ddb448896909bc04928"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  94. <tr class="memitem:ga7603e81477b46ddb448896909bc04928"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00663.html#ga7603e81477b46ddb448896909bc04928">pitch</a> (qua&lt; T, Q &gt; const &amp;x)</td></tr>
  95. <tr class="separator:ga7603e81477b46ddb448896909bc04928"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:ga1108a4ab88ca87bac321454eea7702f8"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  97. <tr class="memitem:ga1108a4ab88ca87bac321454eea7702f8"><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="a00663.html#ga1108a4ab88ca87bac321454eea7702f8">quat_cast</a> (mat&lt; 3, 3, T, Q &gt; const &amp;x)</td></tr>
  98. <tr class="separator:ga1108a4ab88ca87bac321454eea7702f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:ga4524810f07f72e8c7bdc7764fa11cb58"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  100. <tr class="memitem:ga4524810f07f72e8c7bdc7764fa11cb58"><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="a00663.html#ga4524810f07f72e8c7bdc7764fa11cb58">quat_cast</a> (mat&lt; 4, 4, T, Q &gt; const &amp;x)</td></tr>
  101. <tr class="separator:ga4524810f07f72e8c7bdc7764fa11cb58"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:gabe7fc5ec5feb41ab234d5d2b6254697f"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  103. <tr class="memitem:gabe7fc5ec5feb41ab234d5d2b6254697f"><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="a00663.html#gabe7fc5ec5feb41ab234d5d2b6254697f">quatLookAt</a> (vec&lt; 3, T, Q &gt; const &amp;direction, vec&lt; 3, T, Q &gt; const &amp;up)</td></tr>
  104. <tr class="separator:gabe7fc5ec5feb41ab234d5d2b6254697f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:ga2da350c73411be3bb19441b226b81a74"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  106. <tr class="memitem:ga2da350c73411be3bb19441b226b81a74"><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="a00663.html#ga2da350c73411be3bb19441b226b81a74">quatLookAtLH</a> (vec&lt; 3, T, Q &gt; const &amp;direction, vec&lt; 3, T, Q &gt; const &amp;up)</td></tr>
  107. <tr class="separator:ga2da350c73411be3bb19441b226b81a74"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:gaf6529ac8c04a57fcc35865b5c9437cc8"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  109. <tr class="memitem:gaf6529ac8c04a57fcc35865b5c9437cc8"><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="a00663.html#gaf6529ac8c04a57fcc35865b5c9437cc8">quatLookAtRH</a> (vec&lt; 3, T, Q &gt; const &amp;direction, vec&lt; 3, T, Q &gt; const &amp;up)</td></tr>
  110. <tr class="separator:gaf6529ac8c04a57fcc35865b5c9437cc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:ga0cc5ad970d0b00829b139fe0fe5a1e13"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  112. <tr class="memitem:ga0cc5ad970d0b00829b139fe0fe5a1e13"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00663.html#ga0cc5ad970d0b00829b139fe0fe5a1e13">roll</a> (qua&lt; T, Q &gt; const &amp;x)</td></tr>
  113. <tr class="separator:ga0cc5ad970d0b00829b139fe0fe5a1e13"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:ga8da38cdfdc452dafa660c2f46506bad5"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  115. <tr class="memitem:ga8da38cdfdc452dafa660c2f46506bad5"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00663.html#ga8da38cdfdc452dafa660c2f46506bad5">yaw</a> (qua&lt; T, Q &gt; const &amp;x)</td></tr>
  116. <tr class="separator:ga8da38cdfdc452dafa660c2f46506bad5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. </table>
  118. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  119. <p>Include &lt;<a class="el" href="a01370.html" title="GLM_GTC_quaternion ">glm/gtc/quaternion.hpp</a>&gt; to use the features of this extension. </p>
  120. <p>Defines a templated quaternion type and several quaternion operations. </p>
  121. <h2 class="groupheader">Function Documentation</h2>
  122. <a id="gaf4dd967dead22dd932fc7460ceecb03f"></a>
  123. <h2 class="memtitle"><span class="permalink"><a href="#gaf4dd967dead22dd932fc7460ceecb03f">&#9670;&nbsp;</a></span>eulerAngles()</h2>
  124. <div class="memitem">
  125. <div class="memproto">
  126. <table class="memname">
  127. <tr>
  128. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::eulerAngles </td>
  129. <td>(</td>
  130. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  131. <td class="paramname"><em>x</em></td><td>)</td>
  132. <td></td>
  133. </tr>
  134. </table>
  135. </div><div class="memdoc">
  136. <p>Returns euler angles, pitch as x, yaw as y, roll as z. </p>
  137. <p>The result is expressed in radians.</p>
  138. <dl class="tparams"><dt>Template Parameters</dt><dd>
  139. <table class="tparams">
  140. <tr><td class="paramname">T</td><td>Floating-point scalar types.</td></tr>
  141. </table>
  142. </dd>
  143. </dl>
  144. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00663.html" title="Include &lt;glm/gtc/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTC_quaternion</a> </dd></dl>
  145. </div>
  146. </div>
  147. <a id="ga8f7fa76e06c417b757ddfd438f3f677b"></a>
  148. <h2 class="memtitle"><span class="permalink"><a href="#ga8f7fa76e06c417b757ddfd438f3f677b">&#9670;&nbsp;</a></span>greaterThan()</h2>
  149. <div class="memitem">
  150. <div class="memproto">
  151. <table class="memname">
  152. <tr>
  153. <td class="memname">GLM_FUNC_DECL vec&lt;4, bool, Q&gt; glm::greaterThan </td>
  154. <td>(</td>
  155. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  156. <td class="paramname"><em>x</em>, </td>
  157. </tr>
  158. <tr>
  159. <td class="paramkey"></td>
  160. <td></td>
  161. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  162. <td class="paramname"><em>y</em>&#160;</td>
  163. </tr>
  164. <tr>
  165. <td></td>
  166. <td>)</td>
  167. <td></td><td></td>
  168. </tr>
  169. </table>
  170. </div><div class="memdoc">
  171. <p>Returns the component-wise comparison of result x &gt; y. </p>
  172. <dl class="tparams"><dt>Template Parameters</dt><dd>
  173. <table class="tparams">
  174. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  175. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  176. </table>
  177. </dd>
  178. </dl>
  179. <dl class="section see"><dt>See also</dt><dd><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></dl>
  180. </div>
  181. </div>
  182. <a id="ga388cbeba987dae7b5937f742efa49a5a"></a>
  183. <h2 class="memtitle"><span class="permalink"><a href="#ga388cbeba987dae7b5937f742efa49a5a">&#9670;&nbsp;</a></span>greaterThanEqual()</h2>
  184. <div class="memitem">
  185. <div class="memproto">
  186. <table class="memname">
  187. <tr>
  188. <td class="memname">GLM_FUNC_DECL vec&lt;4, bool, Q&gt; glm::greaterThanEqual </td>
  189. <td>(</td>
  190. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  191. <td class="paramname"><em>x</em>, </td>
  192. </tr>
  193. <tr>
  194. <td class="paramkey"></td>
  195. <td></td>
  196. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  197. <td class="paramname"><em>y</em>&#160;</td>
  198. </tr>
  199. <tr>
  200. <td></td>
  201. <td>)</td>
  202. <td></td><td></td>
  203. </tr>
  204. </table>
  205. </div><div class="memdoc">
  206. <p>Returns the component-wise comparison of result x &gt;= y. </p>
  207. <dl class="tparams"><dt>Template Parameters</dt><dd>
  208. <table class="tparams">
  209. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  210. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  211. </table>
  212. </dd>
  213. </dl>
  214. <dl class="section see"><dt>See also</dt><dd><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></dl>
  215. </div>
  216. </div>
  217. <a id="gad091a2d22c8acfebfa92bcfca1dfe9c4"></a>
  218. <h2 class="memtitle"><span class="permalink"><a href="#gad091a2d22c8acfebfa92bcfca1dfe9c4">&#9670;&nbsp;</a></span>lessThan()</h2>
  219. <div class="memitem">
  220. <div class="memproto">
  221. <table class="memname">
  222. <tr>
  223. <td class="memname">GLM_FUNC_DECL vec&lt;4, bool, Q&gt; glm::lessThan </td>
  224. <td>(</td>
  225. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  226. <td class="paramname"><em>x</em>, </td>
  227. </tr>
  228. <tr>
  229. <td class="paramkey"></td>
  230. <td></td>
  231. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  232. <td class="paramname"><em>y</em>&#160;</td>
  233. </tr>
  234. <tr>
  235. <td></td>
  236. <td>)</td>
  237. <td></td><td></td>
  238. </tr>
  239. </table>
  240. </div><div class="memdoc">
  241. <p>Returns the component-wise comparison result of x &lt; y. </p>
  242. <dl class="tparams"><dt>Template Parameters</dt><dd>
  243. <table class="tparams">
  244. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  245. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  246. </table>
  247. </dd>
  248. </dl>
  249. <dl class="section see"><dt>See also</dt><dd><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></dl>
  250. </div>
  251. </div>
  252. <a id="gac00012eea281800d2403f4ea8443134d"></a>
  253. <h2 class="memtitle"><span class="permalink"><a href="#gac00012eea281800d2403f4ea8443134d">&#9670;&nbsp;</a></span>lessThanEqual()</h2>
  254. <div class="memitem">
  255. <div class="memproto">
  256. <table class="memname">
  257. <tr>
  258. <td class="memname">GLM_FUNC_DECL vec&lt;4, bool, Q&gt; glm::lessThanEqual </td>
  259. <td>(</td>
  260. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  261. <td class="paramname"><em>x</em>, </td>
  262. </tr>
  263. <tr>
  264. <td class="paramkey"></td>
  265. <td></td>
  266. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  267. <td class="paramname"><em>y</em>&#160;</td>
  268. </tr>
  269. <tr>
  270. <td></td>
  271. <td>)</td>
  272. <td></td><td></td>
  273. </tr>
  274. </table>
  275. </div><div class="memdoc">
  276. <p>Returns the component-wise comparison of result x &lt;= y. </p>
  277. <dl class="tparams"><dt>Template Parameters</dt><dd>
  278. <table class="tparams">
  279. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  280. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  281. </table>
  282. </dd>
  283. </dl>
  284. <dl class="section see"><dt>See also</dt><dd><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></dl>
  285. </div>
  286. </div>
  287. <a id="ga333ab70047fbe4132406100c292dbc89"></a>
  288. <h2 class="memtitle"><span class="permalink"><a href="#ga333ab70047fbe4132406100c292dbc89">&#9670;&nbsp;</a></span>mat3_cast()</h2>
  289. <div class="memitem">
  290. <div class="memproto">
  291. <table class="memname">
  292. <tr>
  293. <td class="memname">GLM_FUNC_DECL mat&lt;3, 3, T, Q&gt; glm::mat3_cast </td>
  294. <td>(</td>
  295. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  296. <td class="paramname"><em>x</em></td><td>)</td>
  297. <td></td>
  298. </tr>
  299. </table>
  300. </div><div class="memdoc">
  301. <p>Converts a quaternion to a 3 * 3 matrix. </p>
  302. <dl class="tparams"><dt>Template Parameters</dt><dd>
  303. <table class="tparams">
  304. <tr><td class="paramname">T</td><td>Floating-point scalar types.</td></tr>
  305. </table>
  306. </dd>
  307. </dl>
  308. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00663.html" title="Include &lt;glm/gtc/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTC_quaternion</a> </dd></dl>
  309. <p class="reference">Referenced by <a class="el" href="a01373_source.html#l00113">glm::toMat3()</a>.</p>
  310. </div>
  311. </div>
  312. <a id="ga1113212d9bdefc2e31ad40e5bbb506f3"></a>
  313. <h2 class="memtitle"><span class="permalink"><a href="#ga1113212d9bdefc2e31ad40e5bbb506f3">&#9670;&nbsp;</a></span>mat4_cast()</h2>
  314. <div class="memitem">
  315. <div class="memproto">
  316. <table class="memname">
  317. <tr>
  318. <td class="memname">GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; glm::mat4_cast </td>
  319. <td>(</td>
  320. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  321. <td class="paramname"><em>x</em></td><td>)</td>
  322. <td></td>
  323. </tr>
  324. </table>
  325. </div><div class="memdoc">
  326. <p>Converts a quaternion to a 4 * 4 matrix. </p>
  327. <dl class="tparams"><dt>Template Parameters</dt><dd>
  328. <table class="tparams">
  329. <tr><td class="paramname">T</td><td>Floating-point scalar types.</td></tr>
  330. </table>
  331. </dd>
  332. </dl>
  333. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00663.html" title="Include &lt;glm/gtc/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTC_quaternion</a> </dd></dl>
  334. <p class="reference">Referenced by <a class="el" href="a01373_source.html#l00120">glm::toMat4()</a>.</p>
  335. </div>
  336. </div>
  337. <a id="ga7603e81477b46ddb448896909bc04928"></a>
  338. <h2 class="memtitle"><span class="permalink"><a href="#ga7603e81477b46ddb448896909bc04928">&#9670;&nbsp;</a></span>pitch()</h2>
  339. <div class="memitem">
  340. <div class="memproto">
  341. <table class="memname">
  342. <tr>
  343. <td class="memname">GLM_FUNC_DECL T glm::pitch </td>
  344. <td>(</td>
  345. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  346. <td class="paramname"><em>x</em></td><td>)</td>
  347. <td></td>
  348. </tr>
  349. </table>
  350. </div><div class="memdoc">
  351. <p>Returns pitch value of euler angles expressed in radians. </p>
  352. <dl class="tparams"><dt>Template Parameters</dt><dd>
  353. <table class="tparams">
  354. <tr><td class="paramname">T</td><td>Floating-point scalar types.</td></tr>
  355. </table>
  356. </dd>
  357. </dl>
  358. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00663.html" title="Include &lt;glm/gtc/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTC_quaternion</a> </dd></dl>
  359. </div>
  360. </div>
  361. <a id="ga1108a4ab88ca87bac321454eea7702f8"></a>
  362. <h2 class="memtitle"><span class="permalink"><a href="#ga1108a4ab88ca87bac321454eea7702f8">&#9670;&nbsp;</a></span>quat_cast() <span class="overload">[1/2]</span></h2>
  363. <div class="memitem">
  364. <div class="memproto">
  365. <table class="memname">
  366. <tr>
  367. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::quat_cast </td>
  368. <td>(</td>
  369. <td class="paramtype">mat&lt; 3, 3, T, Q &gt; const &amp;&#160;</td>
  370. <td class="paramname"><em>x</em></td><td>)</td>
  371. <td></td>
  372. </tr>
  373. </table>
  374. </div><div class="memdoc">
  375. <p>Converts a pure rotation 3 * 3 matrix to a quaternion. </p>
  376. <dl class="tparams"><dt>Template Parameters</dt><dd>
  377. <table class="tparams">
  378. <tr><td class="paramname">T</td><td>Floating-point scalar types.</td></tr>
  379. </table>
  380. </dd>
  381. </dl>
  382. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00663.html" title="Include &lt;glm/gtc/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTC_quaternion</a> </dd></dl>
  383. <p class="reference">Referenced by <a class="el" href="a01373_source.html#l00127">glm::toQuat()</a>.</p>
  384. </div>
  385. </div>
  386. <a id="ga4524810f07f72e8c7bdc7764fa11cb58"></a>
  387. <h2 class="memtitle"><span class="permalink"><a href="#ga4524810f07f72e8c7bdc7764fa11cb58">&#9670;&nbsp;</a></span>quat_cast() <span class="overload">[2/2]</span></h2>
  388. <div class="memitem">
  389. <div class="memproto">
  390. <table class="memname">
  391. <tr>
  392. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::quat_cast </td>
  393. <td>(</td>
  394. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  395. <td class="paramname"><em>x</em></td><td>)</td>
  396. <td></td>
  397. </tr>
  398. </table>
  399. </div><div class="memdoc">
  400. <p>Converts a pure rotation 4 * 4 matrix to a quaternion. </p>
  401. <dl class="tparams"><dt>Template Parameters</dt><dd>
  402. <table class="tparams">
  403. <tr><td class="paramname">T</td><td>Floating-point scalar types.</td></tr>
  404. </table>
  405. </dd>
  406. </dl>
  407. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00663.html" title="Include &lt;glm/gtc/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTC_quaternion</a> </dd></dl>
  408. </div>
  409. </div>
  410. <a id="gabe7fc5ec5feb41ab234d5d2b6254697f"></a>
  411. <h2 class="memtitle"><span class="permalink"><a href="#gabe7fc5ec5feb41ab234d5d2b6254697f">&#9670;&nbsp;</a></span>quatLookAt()</h2>
  412. <div class="memitem">
  413. <div class="memproto">
  414. <table class="memname">
  415. <tr>
  416. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::quatLookAt </td>
  417. <td>(</td>
  418. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  419. <td class="paramname"><em>direction</em>, </td>
  420. </tr>
  421. <tr>
  422. <td class="paramkey"></td>
  423. <td></td>
  424. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  425. <td class="paramname"><em>up</em>&#160;</td>
  426. </tr>
  427. <tr>
  428. <td></td>
  429. <td>)</td>
  430. <td></td><td></td>
  431. </tr>
  432. </table>
  433. </div><div class="memdoc">
  434. <p>Build a look at quaternion based on the default handedness. </p>
  435. <dl class="params"><dt>Parameters</dt><dd>
  436. <table class="params">
  437. <tr><td class="paramname">direction</td><td>Desired forward direction. Needs to be normalized. </td></tr>
  438. <tr><td class="paramname">up</td><td>Up vector, how the camera is oriented. Typically (0, 1, 0). </td></tr>
  439. </table>
  440. </dd>
  441. </dl>
  442. </div>
  443. </div>
  444. <a id="ga2da350c73411be3bb19441b226b81a74"></a>
  445. <h2 class="memtitle"><span class="permalink"><a href="#ga2da350c73411be3bb19441b226b81a74">&#9670;&nbsp;</a></span>quatLookAtLH()</h2>
  446. <div class="memitem">
  447. <div class="memproto">
  448. <table class="memname">
  449. <tr>
  450. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::quatLookAtLH </td>
  451. <td>(</td>
  452. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  453. <td class="paramname"><em>direction</em>, </td>
  454. </tr>
  455. <tr>
  456. <td class="paramkey"></td>
  457. <td></td>
  458. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  459. <td class="paramname"><em>up</em>&#160;</td>
  460. </tr>
  461. <tr>
  462. <td></td>
  463. <td>)</td>
  464. <td></td><td></td>
  465. </tr>
  466. </table>
  467. </div><div class="memdoc">
  468. <p>Build a left-handed look at quaternion. </p>
  469. <dl class="params"><dt>Parameters</dt><dd>
  470. <table class="params">
  471. <tr><td class="paramname">direction</td><td>Desired forward direction onto which the +z-axis gets mapped. Needs to be normalized. </td></tr>
  472. <tr><td class="paramname">up</td><td>Up vector, how the camera is oriented. Typically (0, 1, 0). </td></tr>
  473. </table>
  474. </dd>
  475. </dl>
  476. </div>
  477. </div>
  478. <a id="gaf6529ac8c04a57fcc35865b5c9437cc8"></a>
  479. <h2 class="memtitle"><span class="permalink"><a href="#gaf6529ac8c04a57fcc35865b5c9437cc8">&#9670;&nbsp;</a></span>quatLookAtRH()</h2>
  480. <div class="memitem">
  481. <div class="memproto">
  482. <table class="memname">
  483. <tr>
  484. <td class="memname">GLM_FUNC_DECL qua&lt;T, Q&gt; glm::quatLookAtRH </td>
  485. <td>(</td>
  486. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  487. <td class="paramname"><em>direction</em>, </td>
  488. </tr>
  489. <tr>
  490. <td class="paramkey"></td>
  491. <td></td>
  492. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  493. <td class="paramname"><em>up</em>&#160;</td>
  494. </tr>
  495. <tr>
  496. <td></td>
  497. <td>)</td>
  498. <td></td><td></td>
  499. </tr>
  500. </table>
  501. </div><div class="memdoc">
  502. <p>Build a right-handed look at quaternion. </p>
  503. <dl class="params"><dt>Parameters</dt><dd>
  504. <table class="params">
  505. <tr><td class="paramname">direction</td><td>Desired forward direction onto which the -z-axis gets mapped. Needs to be normalized. </td></tr>
  506. <tr><td class="paramname">up</td><td>Up vector, how the camera is oriented. Typically (0, 1, 0). </td></tr>
  507. </table>
  508. </dd>
  509. </dl>
  510. </div>
  511. </div>
  512. <a id="ga0cc5ad970d0b00829b139fe0fe5a1e13"></a>
  513. <h2 class="memtitle"><span class="permalink"><a href="#ga0cc5ad970d0b00829b139fe0fe5a1e13">&#9670;&nbsp;</a></span>roll()</h2>
  514. <div class="memitem">
  515. <div class="memproto">
  516. <table class="memname">
  517. <tr>
  518. <td class="memname">GLM_FUNC_DECL T glm::roll </td>
  519. <td>(</td>
  520. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  521. <td class="paramname"><em>x</em></td><td>)</td>
  522. <td></td>
  523. </tr>
  524. </table>
  525. </div><div class="memdoc">
  526. <p>Returns roll value of euler angles expressed in radians. </p>
  527. <dl class="tparams"><dt>Template Parameters</dt><dd>
  528. <table class="tparams">
  529. <tr><td class="paramname">T</td><td>Floating-point scalar types.</td></tr>
  530. </table>
  531. </dd>
  532. </dl>
  533. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00663.html" title="Include &lt;glm/gtc/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTC_quaternion</a> </dd></dl>
  534. </div>
  535. </div>
  536. <a id="ga8da38cdfdc452dafa660c2f46506bad5"></a>
  537. <h2 class="memtitle"><span class="permalink"><a href="#ga8da38cdfdc452dafa660c2f46506bad5">&#9670;&nbsp;</a></span>yaw()</h2>
  538. <div class="memitem">
  539. <div class="memproto">
  540. <table class="memname">
  541. <tr>
  542. <td class="memname">GLM_FUNC_DECL T glm::yaw </td>
  543. <td>(</td>
  544. <td class="paramtype">qua&lt; T, Q &gt; const &amp;&#160;</td>
  545. <td class="paramname"><em>x</em></td><td>)</td>
  546. <td></td>
  547. </tr>
  548. </table>
  549. </div><div class="memdoc">
  550. <p>Returns yaw value of euler angles expressed in radians. </p>
  551. <dl class="tparams"><dt>Template Parameters</dt><dd>
  552. <table class="tparams">
  553. <tr><td class="paramname">T</td><td>Floating-point scalar types.</td></tr>
  554. </table>
  555. </dd>
  556. </dl>
  557. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00663.html" title="Include &lt;glm/gtc/quaternion.hpp&gt; to use the features of this extension. ">GLM_GTC_quaternion</a> </dd></dl>
  558. </div>
  559. </div>
  560. </div><!-- contents -->
  561. <!-- start footer part -->
  562. <hr class="footer"/><address class="footer"><small>
  563. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  564. <img class="footer" src="doxygen.png" alt="doxygen"/>
  565. </a> 1.8.14
  566. </small></address>
  567. </body>
  568. </html>