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.

717 lines
36 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_round</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_round<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:ga1d89ac88582aaf4d5dfa5feb4a376fd4"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  73. <tr class="memitem:ga1d89ac88582aaf4d5dfa5feb4a376fd4"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#ga1d89ac88582aaf4d5dfa5feb4a376fd4">ceilMultiple</a> (genType v, genType Multiple)</td></tr>
  74. <tr class="separator:ga1d89ac88582aaf4d5dfa5feb4a376fd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:gab77fdcc13f8e92d2e0b1b7d7aeab8e9d"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:gab77fdcc13f8e92d2e0b1b7d7aeab8e9d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#gab77fdcc13f8e92d2e0b1b7d7aeab8e9d">ceilMultiple</a> (vec&lt; L, T, Q &gt; const &amp;v, vec&lt; L, T, Q &gt; const &amp;Multiple)</td></tr>
  77. <tr class="separator:gab77fdcc13f8e92d2e0b1b7d7aeab8e9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga5c3ef36ae32aa4271f1544f92bd578b6"><td class="memTemplParams" colspan="2">template&lt;typename genIUType &gt; </td></tr>
  79. <tr class="memitem:ga5c3ef36ae32aa4271f1544f92bd578b6"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genIUType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#ga5c3ef36ae32aa4271f1544f92bd578b6">ceilPowerOfTwo</a> (genIUType v)</td></tr>
  80. <tr class="separator:ga5c3ef36ae32aa4271f1544f92bd578b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:gab53d4a97c0d3e297be5f693cdfdfe5d2"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  82. <tr class="memitem:gab53d4a97c0d3e297be5f693cdfdfe5d2"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#gab53d4a97c0d3e297be5f693cdfdfe5d2">ceilPowerOfTwo</a> (vec&lt; L, T, Q &gt; const &amp;v)</td></tr>
  83. <tr class="separator:gab53d4a97c0d3e297be5f693cdfdfe5d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:ga2ffa3cd5f2ea746ee1bf57c46da6315e"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  85. <tr class="memitem:ga2ffa3cd5f2ea746ee1bf57c46da6315e"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#ga2ffa3cd5f2ea746ee1bf57c46da6315e">floorMultiple</a> (genType v, genType Multiple)</td></tr>
  86. <tr class="separator:ga2ffa3cd5f2ea746ee1bf57c46da6315e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:gacdd8901448f51f0b192380e422fae3e4"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  88. <tr class="memitem:gacdd8901448f51f0b192380e422fae3e4"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#gacdd8901448f51f0b192380e422fae3e4">floorMultiple</a> (vec&lt; L, T, Q &gt; const &amp;v, vec&lt; L, T, Q &gt; const &amp;Multiple)</td></tr>
  89. <tr class="separator:gacdd8901448f51f0b192380e422fae3e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:gafe273a57935d04c9db677bf67f9a71f4"><td class="memTemplParams" colspan="2">template&lt;typename genIUType &gt; </td></tr>
  91. <tr class="memitem:gafe273a57935d04c9db677bf67f9a71f4"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genIUType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#gafe273a57935d04c9db677bf67f9a71f4">floorPowerOfTwo</a> (genIUType v)</td></tr>
  92. <tr class="separator:gafe273a57935d04c9db677bf67f9a71f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:gaf0d591a8fca8ddb9289cdeb44b989c2d"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  94. <tr class="memitem:gaf0d591a8fca8ddb9289cdeb44b989c2d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#gaf0d591a8fca8ddb9289cdeb44b989c2d">floorPowerOfTwo</a> (vec&lt; L, T, Q &gt; const &amp;v)</td></tr>
  95. <tr class="separator:gaf0d591a8fca8ddb9289cdeb44b989c2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:gaec593d33956a8fe43f78fccc63ddde9a"><td class="memTemplParams" colspan="2">template&lt;typename genIUType &gt; </td></tr>
  97. <tr class="memitem:gaec593d33956a8fe43f78fccc63ddde9a"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#gaec593d33956a8fe43f78fccc63ddde9a">isMultiple</a> (genIUType v, genIUType Multiple)</td></tr>
  98. <tr class="separator:gaec593d33956a8fe43f78fccc63ddde9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:ga354caf634ef333d9cb4844407416256a"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  100. <tr class="memitem:ga354caf634ef333d9cb4844407416256a"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, bool, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#ga354caf634ef333d9cb4844407416256a">isMultiple</a> (vec&lt; L, T, Q &gt; const &amp;v, T Multiple)</td></tr>
  101. <tr class="separator:ga354caf634ef333d9cb4844407416256a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:gabb4360e38c0943d8981ba965dead519d"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  103. <tr class="memitem:gabb4360e38c0943d8981ba965dead519d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, bool, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#gabb4360e38c0943d8981ba965dead519d">isMultiple</a> (vec&lt; L, T, Q &gt; const &amp;v, vec&lt; L, T, Q &gt; const &amp;Multiple)</td></tr>
  104. <tr class="separator:gabb4360e38c0943d8981ba965dead519d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:gadf491730354aa7da67fbe23d4d688763"><td class="memTemplParams" colspan="2">template&lt;typename genIUType &gt; </td></tr>
  106. <tr class="memitem:gadf491730354aa7da67fbe23d4d688763"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#gadf491730354aa7da67fbe23d4d688763">isPowerOfTwo</a> (genIUType v)</td></tr>
  107. <tr class="separator:gadf491730354aa7da67fbe23d4d688763"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:gabf2b61ded7049bcb13e25164f832a290"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  109. <tr class="memitem:gabf2b61ded7049bcb13e25164f832a290"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, bool, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#gabf2b61ded7049bcb13e25164f832a290">isPowerOfTwo</a> (vec&lt; L, T, Q &gt; const &amp;v)</td></tr>
  110. <tr class="separator:gabf2b61ded7049bcb13e25164f832a290"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:gab892defcc9c0b0618df7251253dc0fbb"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  112. <tr class="memitem:gab892defcc9c0b0618df7251253dc0fbb"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#gab892defcc9c0b0618df7251253dc0fbb">roundMultiple</a> (genType v, genType Multiple)</td></tr>
  113. <tr class="separator:gab892defcc9c0b0618df7251253dc0fbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:ga2f1a68332d761804c054460a612e3a4b"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  115. <tr class="memitem:ga2f1a68332d761804c054460a612e3a4b"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#ga2f1a68332d761804c054460a612e3a4b">roundMultiple</a> (vec&lt; L, T, Q &gt; const &amp;v, vec&lt; L, T, Q &gt; const &amp;Multiple)</td></tr>
  116. <tr class="separator:ga2f1a68332d761804c054460a612e3a4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:gae4e1bf5d1cd179f59261a7342bdcafca"><td class="memTemplParams" colspan="2">template&lt;typename genIUType &gt; </td></tr>
  118. <tr class="memitem:gae4e1bf5d1cd179f59261a7342bdcafca"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genIUType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#gae4e1bf5d1cd179f59261a7342bdcafca">roundPowerOfTwo</a> (genIUType v)</td></tr>
  119. <tr class="separator:gae4e1bf5d1cd179f59261a7342bdcafca"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:ga258802a7d55c03c918f28cf4d241c4d0"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  121. <tr class="memitem:ga258802a7d55c03c918f28cf4d241c4d0"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00719.html#ga258802a7d55c03c918f28cf4d241c4d0">roundPowerOfTwo</a> (vec&lt; L, T, Q &gt; const &amp;v)</td></tr>
  122. <tr class="separator:ga258802a7d55c03c918f28cf4d241c4d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. </table>
  124. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  125. <p>Include &lt;<a class="el" href="a00428.html" title="GLM_GTC_round ">glm/gtc/round.hpp</a>&gt; to use the features of this extension. </p>
  126. <p>Rounding value to specific boundings </p>
  127. <h2 class="groupheader">Function Documentation</h2>
  128. <a id="ga1d89ac88582aaf4d5dfa5feb4a376fd4"></a>
  129. <h2 class="memtitle"><span class="permalink"><a href="#ga1d89ac88582aaf4d5dfa5feb4a376fd4">&#9670;&nbsp;</a></span>ceilMultiple() <span class="overload">[1/2]</span></h2>
  130. <div class="memitem">
  131. <div class="memproto">
  132. <table class="memname">
  133. <tr>
  134. <td class="memname">GLM_FUNC_DECL genType glm::ceilMultiple </td>
  135. <td>(</td>
  136. <td class="paramtype">genType&#160;</td>
  137. <td class="paramname"><em>v</em>, </td>
  138. </tr>
  139. <tr>
  140. <td class="paramkey"></td>
  141. <td></td>
  142. <td class="paramtype">genType&#160;</td>
  143. <td class="paramname"><em>Multiple</em>&#160;</td>
  144. </tr>
  145. <tr>
  146. <td></td>
  147. <td>)</td>
  148. <td></td><td></td>
  149. </tr>
  150. </table>
  151. </div><div class="memdoc">
  152. <p>Higher multiple number of Source. </p>
  153. <dl class="tparams"><dt>Template Parameters</dt><dd>
  154. <table class="tparams">
  155. <tr><td class="paramname">genType</td><td>Floating-point or integer scalar or vector types.</td></tr>
  156. </table>
  157. </dd>
  158. </dl>
  159. <dl class="params"><dt>Parameters</dt><dd>
  160. <table class="params">
  161. <tr><td class="paramname">v</td><td>Source value to which is applied the function </td></tr>
  162. <tr><td class="paramname">Multiple</td><td>Must be a null or positive value</td></tr>
  163. </table>
  164. </dd>
  165. </dl>
  166. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  167. </div>
  168. </div>
  169. <a id="gab77fdcc13f8e92d2e0b1b7d7aeab8e9d"></a>
  170. <h2 class="memtitle"><span class="permalink"><a href="#gab77fdcc13f8e92d2e0b1b7d7aeab8e9d">&#9670;&nbsp;</a></span>ceilMultiple() <span class="overload">[2/2]</span></h2>
  171. <div class="memitem">
  172. <div class="memproto">
  173. <table class="memname">
  174. <tr>
  175. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::ceilMultiple </td>
  176. <td>(</td>
  177. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  178. <td class="paramname"><em>v</em>, </td>
  179. </tr>
  180. <tr>
  181. <td class="paramkey"></td>
  182. <td></td>
  183. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  184. <td class="paramname"><em>Multiple</em>&#160;</td>
  185. </tr>
  186. <tr>
  187. <td></td>
  188. <td>)</td>
  189. <td></td><td></td>
  190. </tr>
  191. </table>
  192. </div><div class="memdoc">
  193. <p>Higher multiple number of Source. </p>
  194. <dl class="tparams"><dt>Template Parameters</dt><dd>
  195. <table class="tparams">
  196. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  197. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  198. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  199. </table>
  200. </dd>
  201. </dl>
  202. <dl class="params"><dt>Parameters</dt><dd>
  203. <table class="params">
  204. <tr><td class="paramname">v</td><td>Source values to which is applied the function </td></tr>
  205. <tr><td class="paramname">Multiple</td><td>Must be a null or positive value</td></tr>
  206. </table>
  207. </dd>
  208. </dl>
  209. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  210. </div>
  211. </div>
  212. <a id="ga5c3ef36ae32aa4271f1544f92bd578b6"></a>
  213. <h2 class="memtitle"><span class="permalink"><a href="#ga5c3ef36ae32aa4271f1544f92bd578b6">&#9670;&nbsp;</a></span>ceilPowerOfTwo() <span class="overload">[1/2]</span></h2>
  214. <div class="memitem">
  215. <div class="memproto">
  216. <table class="memname">
  217. <tr>
  218. <td class="memname">GLM_FUNC_DECL genIUType glm::ceilPowerOfTwo </td>
  219. <td>(</td>
  220. <td class="paramtype">genIUType&#160;</td>
  221. <td class="paramname"><em>v</em></td><td>)</td>
  222. <td></td>
  223. </tr>
  224. </table>
  225. </div><div class="memdoc">
  226. <p>Return the power of two number which value is just higher the input value, round up to a power of two. </p>
  227. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  228. </div>
  229. </div>
  230. <a id="gab53d4a97c0d3e297be5f693cdfdfe5d2"></a>
  231. <h2 class="memtitle"><span class="permalink"><a href="#gab53d4a97c0d3e297be5f693cdfdfe5d2">&#9670;&nbsp;</a></span>ceilPowerOfTwo() <span class="overload">[2/2]</span></h2>
  232. <div class="memitem">
  233. <div class="memproto">
  234. <table class="memname">
  235. <tr>
  236. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::ceilPowerOfTwo </td>
  237. <td>(</td>
  238. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  239. <td class="paramname"><em>v</em></td><td>)</td>
  240. <td></td>
  241. </tr>
  242. </table>
  243. </div><div class="memdoc">
  244. <p>Return the power of two number which value is just higher the input value, round up to a power of two. </p>
  245. <dl class="tparams"><dt>Template Parameters</dt><dd>
  246. <table class="tparams">
  247. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  248. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  249. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  250. </table>
  251. </dd>
  252. </dl>
  253. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  254. </div>
  255. </div>
  256. <a id="ga2ffa3cd5f2ea746ee1bf57c46da6315e"></a>
  257. <h2 class="memtitle"><span class="permalink"><a href="#ga2ffa3cd5f2ea746ee1bf57c46da6315e">&#9670;&nbsp;</a></span>floorMultiple() <span class="overload">[1/2]</span></h2>
  258. <div class="memitem">
  259. <div class="memproto">
  260. <table class="memname">
  261. <tr>
  262. <td class="memname">GLM_FUNC_DECL genType glm::floorMultiple </td>
  263. <td>(</td>
  264. <td class="paramtype">genType&#160;</td>
  265. <td class="paramname"><em>v</em>, </td>
  266. </tr>
  267. <tr>
  268. <td class="paramkey"></td>
  269. <td></td>
  270. <td class="paramtype">genType&#160;</td>
  271. <td class="paramname"><em>Multiple</em>&#160;</td>
  272. </tr>
  273. <tr>
  274. <td></td>
  275. <td>)</td>
  276. <td></td><td></td>
  277. </tr>
  278. </table>
  279. </div><div class="memdoc">
  280. <p>Lower multiple number of Source. </p>
  281. <dl class="tparams"><dt>Template Parameters</dt><dd>
  282. <table class="tparams">
  283. <tr><td class="paramname">genType</td><td>Floating-point or integer scalar or vector types.</td></tr>
  284. </table>
  285. </dd>
  286. </dl>
  287. <dl class="params"><dt>Parameters</dt><dd>
  288. <table class="params">
  289. <tr><td class="paramname">v</td><td>Source value to which is applied the function </td></tr>
  290. <tr><td class="paramname">Multiple</td><td>Must be a null or positive value</td></tr>
  291. </table>
  292. </dd>
  293. </dl>
  294. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  295. </div>
  296. </div>
  297. <a id="gacdd8901448f51f0b192380e422fae3e4"></a>
  298. <h2 class="memtitle"><span class="permalink"><a href="#gacdd8901448f51f0b192380e422fae3e4">&#9670;&nbsp;</a></span>floorMultiple() <span class="overload">[2/2]</span></h2>
  299. <div class="memitem">
  300. <div class="memproto">
  301. <table class="memname">
  302. <tr>
  303. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::floorMultiple </td>
  304. <td>(</td>
  305. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  306. <td class="paramname"><em>v</em>, </td>
  307. </tr>
  308. <tr>
  309. <td class="paramkey"></td>
  310. <td></td>
  311. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  312. <td class="paramname"><em>Multiple</em>&#160;</td>
  313. </tr>
  314. <tr>
  315. <td></td>
  316. <td>)</td>
  317. <td></td><td></td>
  318. </tr>
  319. </table>
  320. </div><div class="memdoc">
  321. <p>Lower multiple number of Source. </p>
  322. <dl class="tparams"><dt>Template Parameters</dt><dd>
  323. <table class="tparams">
  324. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  325. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  326. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  327. </table>
  328. </dd>
  329. </dl>
  330. <dl class="params"><dt>Parameters</dt><dd>
  331. <table class="params">
  332. <tr><td class="paramname">v</td><td>Source values to which is applied the function </td></tr>
  333. <tr><td class="paramname">Multiple</td><td>Must be a null or positive value</td></tr>
  334. </table>
  335. </dd>
  336. </dl>
  337. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  338. </div>
  339. </div>
  340. <a id="gafe273a57935d04c9db677bf67f9a71f4"></a>
  341. <h2 class="memtitle"><span class="permalink"><a href="#gafe273a57935d04c9db677bf67f9a71f4">&#9670;&nbsp;</a></span>floorPowerOfTwo() <span class="overload">[1/2]</span></h2>
  342. <div class="memitem">
  343. <div class="memproto">
  344. <table class="memname">
  345. <tr>
  346. <td class="memname">GLM_FUNC_DECL genIUType glm::floorPowerOfTwo </td>
  347. <td>(</td>
  348. <td class="paramtype">genIUType&#160;</td>
  349. <td class="paramname"><em>v</em></td><td>)</td>
  350. <td></td>
  351. </tr>
  352. </table>
  353. </div><div class="memdoc">
  354. <p>Return the power of two number which value is just lower the input value, round down to a power of two. </p>
  355. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  356. </div>
  357. </div>
  358. <a id="gaf0d591a8fca8ddb9289cdeb44b989c2d"></a>
  359. <h2 class="memtitle"><span class="permalink"><a href="#gaf0d591a8fca8ddb9289cdeb44b989c2d">&#9670;&nbsp;</a></span>floorPowerOfTwo() <span class="overload">[2/2]</span></h2>
  360. <div class="memitem">
  361. <div class="memproto">
  362. <table class="memname">
  363. <tr>
  364. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::floorPowerOfTwo </td>
  365. <td>(</td>
  366. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  367. <td class="paramname"><em>v</em></td><td>)</td>
  368. <td></td>
  369. </tr>
  370. </table>
  371. </div><div class="memdoc">
  372. <p>Return the power of two number which value is just lower the input value, round down to a power of two. </p>
  373. <dl class="tparams"><dt>Template Parameters</dt><dd>
  374. <table class="tparams">
  375. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  376. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  377. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  378. </table>
  379. </dd>
  380. </dl>
  381. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  382. </div>
  383. </div>
  384. <a id="gaec593d33956a8fe43f78fccc63ddde9a"></a>
  385. <h2 class="memtitle"><span class="permalink"><a href="#gaec593d33956a8fe43f78fccc63ddde9a">&#9670;&nbsp;</a></span>isMultiple() <span class="overload">[1/3]</span></h2>
  386. <div class="memitem">
  387. <div class="memproto">
  388. <table class="memname">
  389. <tr>
  390. <td class="memname">GLM_FUNC_DECL bool glm::isMultiple </td>
  391. <td>(</td>
  392. <td class="paramtype">genIUType&#160;</td>
  393. <td class="paramname"><em>v</em>, </td>
  394. </tr>
  395. <tr>
  396. <td class="paramkey"></td>
  397. <td></td>
  398. <td class="paramtype">genIUType&#160;</td>
  399. <td class="paramname"><em>Multiple</em>&#160;</td>
  400. </tr>
  401. <tr>
  402. <td></td>
  403. <td>)</td>
  404. <td></td><td></td>
  405. </tr>
  406. </table>
  407. </div><div class="memdoc">
  408. <p>Return true if the 'Value' is a multiple of 'Multiple'. </p>
  409. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  410. </div>
  411. </div>
  412. <a id="ga354caf634ef333d9cb4844407416256a"></a>
  413. <h2 class="memtitle"><span class="permalink"><a href="#ga354caf634ef333d9cb4844407416256a">&#9670;&nbsp;</a></span>isMultiple() <span class="overload">[2/3]</span></h2>
  414. <div class="memitem">
  415. <div class="memproto">
  416. <table class="memname">
  417. <tr>
  418. <td class="memname">GLM_FUNC_DECL vec&lt;L, bool, Q&gt; glm::isMultiple </td>
  419. <td>(</td>
  420. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  421. <td class="paramname"><em>v</em>, </td>
  422. </tr>
  423. <tr>
  424. <td class="paramkey"></td>
  425. <td></td>
  426. <td class="paramtype">T&#160;</td>
  427. <td class="paramname"><em>Multiple</em>&#160;</td>
  428. </tr>
  429. <tr>
  430. <td></td>
  431. <td>)</td>
  432. <td></td><td></td>
  433. </tr>
  434. </table>
  435. </div><div class="memdoc">
  436. <p>Return true if the 'Value' is a multiple of 'Multiple'. </p>
  437. <dl class="tparams"><dt>Template Parameters</dt><dd>
  438. <table class="tparams">
  439. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  440. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  441. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  442. </table>
  443. </dd>
  444. </dl>
  445. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  446. </div>
  447. </div>
  448. <a id="gabb4360e38c0943d8981ba965dead519d"></a>
  449. <h2 class="memtitle"><span class="permalink"><a href="#gabb4360e38c0943d8981ba965dead519d">&#9670;&nbsp;</a></span>isMultiple() <span class="overload">[3/3]</span></h2>
  450. <div class="memitem">
  451. <div class="memproto">
  452. <table class="memname">
  453. <tr>
  454. <td class="memname">GLM_FUNC_DECL vec&lt;L, bool, Q&gt; glm::isMultiple </td>
  455. <td>(</td>
  456. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  457. <td class="paramname"><em>v</em>, </td>
  458. </tr>
  459. <tr>
  460. <td class="paramkey"></td>
  461. <td></td>
  462. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  463. <td class="paramname"><em>Multiple</em>&#160;</td>
  464. </tr>
  465. <tr>
  466. <td></td>
  467. <td>)</td>
  468. <td></td><td></td>
  469. </tr>
  470. </table>
  471. </div><div class="memdoc">
  472. <p>Return true if the 'Value' is a multiple of 'Multiple'. </p>
  473. <dl class="tparams"><dt>Template Parameters</dt><dd>
  474. <table class="tparams">
  475. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  476. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  477. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  478. </table>
  479. </dd>
  480. </dl>
  481. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  482. </div>
  483. </div>
  484. <a id="gadf491730354aa7da67fbe23d4d688763"></a>
  485. <h2 class="memtitle"><span class="permalink"><a href="#gadf491730354aa7da67fbe23d4d688763">&#9670;&nbsp;</a></span>isPowerOfTwo() <span class="overload">[1/2]</span></h2>
  486. <div class="memitem">
  487. <div class="memproto">
  488. <table class="memname">
  489. <tr>
  490. <td class="memname">GLM_FUNC_DECL bool glm::isPowerOfTwo </td>
  491. <td>(</td>
  492. <td class="paramtype">genIUType&#160;</td>
  493. <td class="paramname"><em>v</em></td><td>)</td>
  494. <td></td>
  495. </tr>
  496. </table>
  497. </div><div class="memdoc">
  498. <p>Return true if the value is a power of two number. </p>
  499. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  500. </div>
  501. </div>
  502. <a id="gabf2b61ded7049bcb13e25164f832a290"></a>
  503. <h2 class="memtitle"><span class="permalink"><a href="#gabf2b61ded7049bcb13e25164f832a290">&#9670;&nbsp;</a></span>isPowerOfTwo() <span class="overload">[2/2]</span></h2>
  504. <div class="memitem">
  505. <div class="memproto">
  506. <table class="memname">
  507. <tr>
  508. <td class="memname">GLM_FUNC_DECL vec&lt;L, bool, Q&gt; glm::isPowerOfTwo </td>
  509. <td>(</td>
  510. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  511. <td class="paramname"><em>v</em></td><td>)</td>
  512. <td></td>
  513. </tr>
  514. </table>
  515. </div><div class="memdoc">
  516. <p>Return true if the value is a power of two number. </p>
  517. <dl class="tparams"><dt>Template Parameters</dt><dd>
  518. <table class="tparams">
  519. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  520. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  521. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  522. </table>
  523. </dd>
  524. </dl>
  525. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  526. </div>
  527. </div>
  528. <a id="gab892defcc9c0b0618df7251253dc0fbb"></a>
  529. <h2 class="memtitle"><span class="permalink"><a href="#gab892defcc9c0b0618df7251253dc0fbb">&#9670;&nbsp;</a></span>roundMultiple() <span class="overload">[1/2]</span></h2>
  530. <div class="memitem">
  531. <div class="memproto">
  532. <table class="memname">
  533. <tr>
  534. <td class="memname">GLM_FUNC_DECL genType glm::roundMultiple </td>
  535. <td>(</td>
  536. <td class="paramtype">genType&#160;</td>
  537. <td class="paramname"><em>v</em>, </td>
  538. </tr>
  539. <tr>
  540. <td class="paramkey"></td>
  541. <td></td>
  542. <td class="paramtype">genType&#160;</td>
  543. <td class="paramname"><em>Multiple</em>&#160;</td>
  544. </tr>
  545. <tr>
  546. <td></td>
  547. <td>)</td>
  548. <td></td><td></td>
  549. </tr>
  550. </table>
  551. </div><div class="memdoc">
  552. <p>Lower multiple number of Source. </p>
  553. <dl class="tparams"><dt>Template Parameters</dt><dd>
  554. <table class="tparams">
  555. <tr><td class="paramname">genType</td><td>Floating-point or integer scalar or vector types.</td></tr>
  556. </table>
  557. </dd>
  558. </dl>
  559. <dl class="params"><dt>Parameters</dt><dd>
  560. <table class="params">
  561. <tr><td class="paramname">v</td><td>Source value to which is applied the function </td></tr>
  562. <tr><td class="paramname">Multiple</td><td>Must be a null or positive value</td></tr>
  563. </table>
  564. </dd>
  565. </dl>
  566. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  567. </div>
  568. </div>
  569. <a id="ga2f1a68332d761804c054460a612e3a4b"></a>
  570. <h2 class="memtitle"><span class="permalink"><a href="#ga2f1a68332d761804c054460a612e3a4b">&#9670;&nbsp;</a></span>roundMultiple() <span class="overload">[2/2]</span></h2>
  571. <div class="memitem">
  572. <div class="memproto">
  573. <table class="memname">
  574. <tr>
  575. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::roundMultiple </td>
  576. <td>(</td>
  577. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  578. <td class="paramname"><em>v</em>, </td>
  579. </tr>
  580. <tr>
  581. <td class="paramkey"></td>
  582. <td></td>
  583. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  584. <td class="paramname"><em>Multiple</em>&#160;</td>
  585. </tr>
  586. <tr>
  587. <td></td>
  588. <td>)</td>
  589. <td></td><td></td>
  590. </tr>
  591. </table>
  592. </div><div class="memdoc">
  593. <p>Lower multiple number of Source. </p>
  594. <dl class="tparams"><dt>Template Parameters</dt><dd>
  595. <table class="tparams">
  596. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  597. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  598. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  599. </table>
  600. </dd>
  601. </dl>
  602. <dl class="params"><dt>Parameters</dt><dd>
  603. <table class="params">
  604. <tr><td class="paramname">v</td><td>Source values to which is applied the function </td></tr>
  605. <tr><td class="paramname">Multiple</td><td>Must be a null or positive value</td></tr>
  606. </table>
  607. </dd>
  608. </dl>
  609. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  610. </div>
  611. </div>
  612. <a id="gae4e1bf5d1cd179f59261a7342bdcafca"></a>
  613. <h2 class="memtitle"><span class="permalink"><a href="#gae4e1bf5d1cd179f59261a7342bdcafca">&#9670;&nbsp;</a></span>roundPowerOfTwo() <span class="overload">[1/2]</span></h2>
  614. <div class="memitem">
  615. <div class="memproto">
  616. <table class="memname">
  617. <tr>
  618. <td class="memname">GLM_FUNC_DECL genIUType glm::roundPowerOfTwo </td>
  619. <td>(</td>
  620. <td class="paramtype">genIUType&#160;</td>
  621. <td class="paramname"><em>v</em></td><td>)</td>
  622. <td></td>
  623. </tr>
  624. </table>
  625. </div><div class="memdoc">
  626. <p>Return the power of two number which value is the closet to the input value. </p>
  627. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  628. </div>
  629. </div>
  630. <a id="ga258802a7d55c03c918f28cf4d241c4d0"></a>
  631. <h2 class="memtitle"><span class="permalink"><a href="#ga258802a7d55c03c918f28cf4d241c4d0">&#9670;&nbsp;</a></span>roundPowerOfTwo() <span class="overload">[2/2]</span></h2>
  632. <div class="memitem">
  633. <div class="memproto">
  634. <table class="memname">
  635. <tr>
  636. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::roundPowerOfTwo </td>
  637. <td>(</td>
  638. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  639. <td class="paramname"><em>v</em></td><td>)</td>
  640. <td></td>
  641. </tr>
  642. </table>
  643. </div><div class="memdoc">
  644. <p>Return the power of two number which value is the closet to the input value. </p>
  645. <dl class="tparams"><dt>Template Parameters</dt><dd>
  646. <table class="tparams">
  647. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  648. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  649. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  650. </table>
  651. </dd>
  652. </dl>
  653. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd></dl>
  654. </div>
  655. </div>
  656. </div><!-- contents -->
  657. <!-- start footer part -->
  658. <hr class="footer"/><address class="footer"><small>
  659. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  660. <img class="footer" src="doxygen.png" alt="doxygen"/>
  661. </a> 1.8.14
  662. </small></address>
  663. </body>
  664. </html>