Platformer in OpenGL
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

1605 řádky
86 KiB

před 5 roky
  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: Common functions</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">Common functions<div class="ingroups"><a class="el" href="a00698.html">Core features</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:ga439e60a72eadecfeda2df5449c613a64"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  73. <tr class="memitem:ga439e60a72eadecfeda2df5449c613a64"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL GLM_CONSTEXPR genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga439e60a72eadecfeda2df5449c613a64">abs</a> (genType x)</td></tr>
  74. <tr class="separator:ga439e60a72eadecfeda2df5449c613a64"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:ga81d3abddd0ef0c8de579bc541ecadab6"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:ga81d3abddd0ef0c8de579bc541ecadab6"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL GLM_CONSTEXPR vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga81d3abddd0ef0c8de579bc541ecadab6">abs</a> (vec&lt; L, T, Q &gt; const &amp;x)</td></tr>
  77. <tr class="separator:ga81d3abddd0ef0c8de579bc541ecadab6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:gafb9d2a645a23aca12d4d6de0104b7657"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:gafb9d2a645a23aca12d4d6de0104b7657"><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="a00662.html#gafb9d2a645a23aca12d4d6de0104b7657">ceil</a> (vec&lt; L, T, Q &gt; const &amp;x)</td></tr>
  80. <tr class="separator:gafb9d2a645a23aca12d4d6de0104b7657"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:ga7cd77683da6361e297c56443fc70806d"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  82. <tr class="memitem:ga7cd77683da6361e297c56443fc70806d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL GLM_CONSTEXPR genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga7cd77683da6361e297c56443fc70806d">clamp</a> (genType x, genType minVal, genType maxVal)</td></tr>
  83. <tr class="separator:ga7cd77683da6361e297c56443fc70806d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:gafba2e0674deb5953878d89483cd6323d"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  85. <tr class="memitem:gafba2e0674deb5953878d89483cd6323d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL GLM_CONSTEXPR vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#gafba2e0674deb5953878d89483cd6323d">clamp</a> (vec&lt; L, T, Q &gt; const &amp;x, T minVal, T maxVal)</td></tr>
  86. <tr class="separator:gafba2e0674deb5953878d89483cd6323d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:gaa0f2f12e9108b09e22a3f0b2008a0b5d"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  88. <tr class="memitem:gaa0f2f12e9108b09e22a3f0b2008a0b5d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL GLM_CONSTEXPR vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#gaa0f2f12e9108b09e22a3f0b2008a0b5d">clamp</a> (vec&lt; L, T, Q &gt; const &amp;x, vec&lt; L, T, Q &gt; const &amp;minVal, vec&lt; L, T, Q &gt; const &amp;maxVal)</td></tr>
  89. <tr class="separator:gaa0f2f12e9108b09e22a3f0b2008a0b5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:ga1425c1c3160ec51214b03a0469a3013d"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00662.html#ga1425c1c3160ec51214b03a0469a3013d">floatBitsToInt</a> (float const &amp;v)</td></tr>
  91. <tr class="separator:ga1425c1c3160ec51214b03a0469a3013d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  92. <tr class="memitem:ga99f7d62f78ac5ea3b49bae715c9488ed"><td class="memTemplParams" colspan="2">template&lt;length_t L, qualifier Q&gt; </td></tr>
  93. <tr class="memitem:ga99f7d62f78ac5ea3b49bae715c9488ed"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, int, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga99f7d62f78ac5ea3b49bae715c9488ed">floatBitsToInt</a> (vec&lt; L, float, Q &gt; const &amp;v)</td></tr>
  94. <tr class="separator:ga99f7d62f78ac5ea3b49bae715c9488ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. <tr class="memitem:ga70e0271c34af52f3100c7960e18c3f2b"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00662.html#ga70e0271c34af52f3100c7960e18c3f2b">floatBitsToUint</a> (float const &amp;v)</td></tr>
  96. <tr class="separator:ga70e0271c34af52f3100c7960e18c3f2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  97. <tr class="memitem:ga49418ba4c8a60fbbb5d57b705f3e26db"><td class="memTemplParams" colspan="2">template&lt;length_t L, qualifier Q&gt; </td></tr>
  98. <tr class="memitem:ga49418ba4c8a60fbbb5d57b705f3e26db"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, uint, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga49418ba4c8a60fbbb5d57b705f3e26db">floatBitsToUint</a> (vec&lt; L, float, Q &gt; const &amp;v)</td></tr>
  99. <tr class="separator:ga49418ba4c8a60fbbb5d57b705f3e26db"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:gaa9d0742639e85b29c7c5de11cfd6840d"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  101. <tr class="memitem:gaa9d0742639e85b29c7c5de11cfd6840d"><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="a00662.html#gaa9d0742639e85b29c7c5de11cfd6840d">floor</a> (vec&lt; L, T, Q &gt; const &amp;x)</td></tr>
  102. <tr class="separator:gaa9d0742639e85b29c7c5de11cfd6840d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:gad0f444d4b81cc53c3b6edf5aa25078c2"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  104. <tr class="memitem:gad0f444d4b81cc53c3b6edf5aa25078c2"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#gad0f444d4b81cc53c3b6edf5aa25078c2">fma</a> (genType const &amp;a, genType const &amp;b, genType const &amp;c)</td></tr>
  105. <tr class="separator:gad0f444d4b81cc53c3b6edf5aa25078c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:ga8ba89e40e55ae5cdf228548f9b7639c7"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  107. <tr class="memitem:ga8ba89e40e55ae5cdf228548f9b7639c7"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga8ba89e40e55ae5cdf228548f9b7639c7">fract</a> (genType x)</td></tr>
  108. <tr class="separator:ga8ba89e40e55ae5cdf228548f9b7639c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:ga2df623004f634b440d61e018d62c751b"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  110. <tr class="memitem:ga2df623004f634b440d61e018d62c751b"><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="a00662.html#ga2df623004f634b440d61e018d62c751b">fract</a> (vec&lt; L, T, Q &gt; const &amp;x)</td></tr>
  111. <tr class="separator:ga2df623004f634b440d61e018d62c751b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:ga20620e83544d1a988857a3bc4ebe0e1d"><td class="memTemplParams" colspan="2">template&lt;typename genType , typename genIType &gt; </td></tr>
  113. <tr class="memitem:ga20620e83544d1a988857a3bc4ebe0e1d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga20620e83544d1a988857a3bc4ebe0e1d">frexp</a> (genType const &amp;x, genIType &amp;exp)</td></tr>
  114. <tr class="separator:ga20620e83544d1a988857a3bc4ebe0e1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:ga4fb7c21c2dce064b26fd9ccdaf9adcd4"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00662.html#ga4fb7c21c2dce064b26fd9ccdaf9adcd4">intBitsToFloat</a> (int const &amp;v)</td></tr>
  116. <tr class="separator:ga4fb7c21c2dce064b26fd9ccdaf9adcd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:ga7a0a8291a1cf3e1c2aee33030a1bd7b0"><td class="memTemplParams" colspan="2">template&lt;length_t L, qualifier Q&gt; </td></tr>
  118. <tr class="memitem:ga7a0a8291a1cf3e1c2aee33030a1bd7b0"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, float, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga7a0a8291a1cf3e1c2aee33030a1bd7b0">intBitsToFloat</a> (vec&lt; L, int, Q &gt; const &amp;v)</td></tr>
  119. <tr class="separator:ga7a0a8291a1cf3e1c2aee33030a1bd7b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:ga2885587c23a106301f20443896365b62"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  121. <tr class="memitem:ga2885587c23a106301f20443896365b62"><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="a00662.html#ga2885587c23a106301f20443896365b62">isinf</a> (vec&lt; L, T, Q &gt; const &amp;x)</td></tr>
  122. <tr class="separator:ga2885587c23a106301f20443896365b62"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:ga29ef934c00306490de837b4746b4e14d"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  124. <tr class="memitem:ga29ef934c00306490de837b4746b4e14d"><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="a00662.html#ga29ef934c00306490de837b4746b4e14d">isnan</a> (vec&lt; L, T, Q &gt; const &amp;x)</td></tr>
  125. <tr class="separator:ga29ef934c00306490de837b4746b4e14d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:ga52e319d7289b849ec92055abd4830533"><td class="memTemplParams" colspan="2">template&lt;typename genType , typename genIType &gt; </td></tr>
  127. <tr class="memitem:ga52e319d7289b849ec92055abd4830533"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga52e319d7289b849ec92055abd4830533">ldexp</a> (genType const &amp;x, genIType const &amp;exp)</td></tr>
  128. <tr class="separator:ga52e319d7289b849ec92055abd4830533"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:gae02d42887fc5570451f880e3c624b9ac"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  130. <tr class="memitem:gae02d42887fc5570451f880e3c624b9ac"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL GLM_CONSTEXPR genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#gae02d42887fc5570451f880e3c624b9ac">max</a> (genType x, genType y)</td></tr>
  131. <tr class="separator:gae02d42887fc5570451f880e3c624b9ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:ga03e45d6e60d1c36edb00c52edeea0f31"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  133. <tr class="memitem:ga03e45d6e60d1c36edb00c52edeea0f31"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL GLM_CONSTEXPR vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga03e45d6e60d1c36edb00c52edeea0f31">max</a> (vec&lt; L, T, Q &gt; const &amp;x, T y)</td></tr>
  134. <tr class="separator:ga03e45d6e60d1c36edb00c52edeea0f31"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. <tr class="memitem:gac1fec0c3303b572a6d4697a637213870"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  136. <tr class="memitem:gac1fec0c3303b572a6d4697a637213870"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL GLM_CONSTEXPR vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#gac1fec0c3303b572a6d4697a637213870">max</a> (vec&lt; L, T, Q &gt; const &amp;x, vec&lt; L, T, Q &gt; const &amp;y)</td></tr>
  137. <tr class="separator:gac1fec0c3303b572a6d4697a637213870"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:ga6cf8098827054a270ee36b18e30d471d"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  139. <tr class="memitem:ga6cf8098827054a270ee36b18e30d471d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL GLM_CONSTEXPR genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga6cf8098827054a270ee36b18e30d471d">min</a> (genType x, genType y)</td></tr>
  140. <tr class="separator:ga6cf8098827054a270ee36b18e30d471d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:gaa7d015eba1f9f48519251f4abe69b14d"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  142. <tr class="memitem:gaa7d015eba1f9f48519251f4abe69b14d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL GLM_CONSTEXPR vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#gaa7d015eba1f9f48519251f4abe69b14d">min</a> (vec&lt; L, T, Q &gt; const &amp;x, T y)</td></tr>
  143. <tr class="separator:gaa7d015eba1f9f48519251f4abe69b14d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. <tr class="memitem:ga31f49ef9e7d1beb003160c5e009b0c48"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  145. <tr class="memitem:ga31f49ef9e7d1beb003160c5e009b0c48"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL GLM_CONSTEXPR vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga31f49ef9e7d1beb003160c5e009b0c48">min</a> (vec&lt; L, T, Q &gt; const &amp;x, vec&lt; L, T, Q &gt; const &amp;y)</td></tr>
  146. <tr class="separator:ga31f49ef9e7d1beb003160c5e009b0c48"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:ga8e93f374aae27d1a88b921860351f8d4"><td class="memTemplParams" colspan="2">template&lt;typename genTypeT , typename genTypeU &gt; </td></tr>
  148. <tr class="memitem:ga8e93f374aae27d1a88b921860351f8d4"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genTypeT&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga8e93f374aae27d1a88b921860351f8d4">mix</a> (genTypeT x, genTypeT y, genTypeU a)</td></tr>
  149. <tr class="separator:ga8e93f374aae27d1a88b921860351f8d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:ga9b197a452cd52db3c5c18bac72bd7798"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  151. <tr class="memitem:ga9b197a452cd52db3c5c18bac72bd7798"><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="a00662.html#ga9b197a452cd52db3c5c18bac72bd7798">mod</a> (vec&lt; L, T, Q &gt; const &amp;x, vec&lt; L, T, Q &gt; const &amp;y)</td></tr>
  152. <tr class="separator:ga9b197a452cd52db3c5c18bac72bd7798"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. <tr class="memitem:ga85e33f139b8db1b39b590a5713b9e679"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  154. <tr class="memitem:ga85e33f139b8db1b39b590a5713b9e679"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga85e33f139b8db1b39b590a5713b9e679">modf</a> (genType x, genType &amp;i)</td></tr>
  155. <tr class="separator:ga85e33f139b8db1b39b590a5713b9e679"><td class="memSeparator" colspan="2">&#160;</td></tr>
  156. <tr class="memitem:gafa03aca8c4713e1cc892aa92ca135a7e"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  157. <tr class="memitem:gafa03aca8c4713e1cc892aa92ca135a7e"><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="a00662.html#gafa03aca8c4713e1cc892aa92ca135a7e">round</a> (vec&lt; L, T, Q &gt; const &amp;x)</td></tr>
  158. <tr class="separator:gafa03aca8c4713e1cc892aa92ca135a7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <tr class="memitem:ga76b81785045a057989a84d99aeeb1578"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  160. <tr class="memitem:ga76b81785045a057989a84d99aeeb1578"><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="a00662.html#ga76b81785045a057989a84d99aeeb1578">roundEven</a> (vec&lt; L, T, Q &gt; const &amp;x)</td></tr>
  161. <tr class="separator:ga76b81785045a057989a84d99aeeb1578"><td class="memSeparator" colspan="2">&#160;</td></tr>
  162. <tr class="memitem:ga1e2e5cfff800056540e32f6c9b604b28"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  163. <tr class="memitem:ga1e2e5cfff800056540e32f6c9b604b28"><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="a00662.html#ga1e2e5cfff800056540e32f6c9b604b28">sign</a> (vec&lt; L, T, Q &gt; const &amp;x)</td></tr>
  164. <tr class="separator:ga1e2e5cfff800056540e32f6c9b604b28"><td class="memSeparator" colspan="2">&#160;</td></tr>
  165. <tr class="memitem:ga562edf7eca082cc5b7a0aaf180436daf"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  166. <tr class="memitem:ga562edf7eca082cc5b7a0aaf180436daf"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga562edf7eca082cc5b7a0aaf180436daf">smoothstep</a> (genType edge0, genType edge1, genType x)</td></tr>
  167. <tr class="separator:ga562edf7eca082cc5b7a0aaf180436daf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  168. <tr class="memitem:ga015a1261ff23e12650211aa872863cce"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  169. <tr class="memitem:ga015a1261ff23e12650211aa872863cce"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga015a1261ff23e12650211aa872863cce">step</a> (genType edge, genType x)</td></tr>
  170. <tr class="separator:ga015a1261ff23e12650211aa872863cce"><td class="memSeparator" colspan="2">&#160;</td></tr>
  171. <tr class="memitem:ga8f9a911a48ef244b51654eaefc81c551"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  172. <tr class="memitem:ga8f9a911a48ef244b51654eaefc81c551"><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="a00662.html#ga8f9a911a48ef244b51654eaefc81c551">step</a> (T edge, vec&lt; L, T, Q &gt; const &amp;x)</td></tr>
  173. <tr class="separator:ga8f9a911a48ef244b51654eaefc81c551"><td class="memSeparator" colspan="2">&#160;</td></tr>
  174. <tr class="memitem:gaf4a5fc81619c7d3e8b22f53d4a098c7f"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  175. <tr class="memitem:gaf4a5fc81619c7d3e8b22f53d4a098c7f"><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="a00662.html#gaf4a5fc81619c7d3e8b22f53d4a098c7f">step</a> (vec&lt; L, T, Q &gt; const &amp;edge, vec&lt; L, T, Q &gt; const &amp;x)</td></tr>
  176. <tr class="separator:gaf4a5fc81619c7d3e8b22f53d4a098c7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  177. <tr class="memitem:gaf9375e3e06173271d49e6ffa3a334259"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  178. <tr class="memitem:gaf9375e3e06173271d49e6ffa3a334259"><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="a00662.html#gaf9375e3e06173271d49e6ffa3a334259">trunc</a> (vec&lt; L, T, Q &gt; const &amp;x)</td></tr>
  179. <tr class="separator:gaf9375e3e06173271d49e6ffa3a334259"><td class="memSeparator" colspan="2">&#160;</td></tr>
  180. <tr class="memitem:gab2bae0d15dcdca6093f88f76b3975d97"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00662.html#gab2bae0d15dcdca6093f88f76b3975d97">uintBitsToFloat</a> (uint const &amp;v)</td></tr>
  181. <tr class="separator:gab2bae0d15dcdca6093f88f76b3975d97"><td class="memSeparator" colspan="2">&#160;</td></tr>
  182. <tr class="memitem:ga97f46b5f7b42fe44482e13356eb394ae"><td class="memTemplParams" colspan="2">template&lt;length_t L, qualifier Q&gt; </td></tr>
  183. <tr class="memitem:ga97f46b5f7b42fe44482e13356eb394ae"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, float, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00662.html#ga97f46b5f7b42fe44482e13356eb394ae">uintBitsToFloat</a> (vec&lt; L, uint, Q &gt; const &amp;v)</td></tr>
  184. <tr class="separator:ga97f46b5f7b42fe44482e13356eb394ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
  185. </table>
  186. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  187. <p>Provides GLSL common functions. </p>
  188. <p>These all operate component-wise. The description is per component.</p>
  189. <p>Include &lt;<a class="el" href="a00002.html" title="Core features ">glm/common.hpp</a>&gt; to use these core features. </p>
  190. <h2 class="groupheader">Function Documentation</h2>
  191. <a id="ga439e60a72eadecfeda2df5449c613a64"></a>
  192. <h2 class="memtitle"><span class="permalink"><a href="#ga439e60a72eadecfeda2df5449c613a64">&#9670;&nbsp;</a></span>abs() <span class="overload">[1/2]</span></h2>
  193. <div class="memitem">
  194. <div class="memproto">
  195. <table class="memname">
  196. <tr>
  197. <td class="memname">GLM_FUNC_DECL GLM_CONSTEXPR genType glm::abs </td>
  198. <td>(</td>
  199. <td class="paramtype">genType&#160;</td>
  200. <td class="paramname"><em>x</em></td><td>)</td>
  201. <td></td>
  202. </tr>
  203. </table>
  204. </div><div class="memdoc">
  205. <p>Returns x if x &gt;= 0; otherwise, it returns -x. </p>
  206. <dl class="tparams"><dt>Template Parameters</dt><dd>
  207. <table class="tparams">
  208. <tr><td class="paramname">genType</td><td>floating-point or signed integer; scalar or vector types.</td></tr>
  209. </table>
  210. </dd>
  211. </dl>
  212. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/abs.xml">GLSL abs man page</a> </dd>
  213. <dd>
  214. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  215. </div>
  216. </div>
  217. <a id="ga81d3abddd0ef0c8de579bc541ecadab6"></a>
  218. <h2 class="memtitle"><span class="permalink"><a href="#ga81d3abddd0ef0c8de579bc541ecadab6">&#9670;&nbsp;</a></span>abs() <span class="overload">[2/2]</span></h2>
  219. <div class="memitem">
  220. <div class="memproto">
  221. <table class="memname">
  222. <tr>
  223. <td class="memname">GLM_FUNC_DECL GLM_CONSTEXPR vec&lt;L, T, Q&gt; glm::abs </td>
  224. <td>(</td>
  225. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  226. <td class="paramname"><em>x</em></td><td>)</td>
  227. <td></td>
  228. </tr>
  229. </table>
  230. </div><div class="memdoc">
  231. <p>Returns x if x &gt;= 0; otherwise, it returns -x. </p>
  232. <dl class="tparams"><dt>Template Parameters</dt><dd>
  233. <table class="tparams">
  234. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  235. <tr><td class="paramname">T</td><td>Floating-point or signed integer scalar types </td></tr>
  236. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  237. </table>
  238. </dd>
  239. </dl>
  240. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/abs.xml">GLSL abs man page</a> </dd>
  241. <dd>
  242. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  243. </div>
  244. </div>
  245. <a id="gafb9d2a645a23aca12d4d6de0104b7657"></a>
  246. <h2 class="memtitle"><span class="permalink"><a href="#gafb9d2a645a23aca12d4d6de0104b7657">&#9670;&nbsp;</a></span>ceil()</h2>
  247. <div class="memitem">
  248. <div class="memproto">
  249. <table class="memname">
  250. <tr>
  251. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::ceil </td>
  252. <td>(</td>
  253. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  254. <td class="paramname"><em>x</em></td><td>)</td>
  255. <td></td>
  256. </tr>
  257. </table>
  258. </div><div class="memdoc">
  259. <p>Returns a value equal to the nearest integer that is greater than or equal to x. </p>
  260. <dl class="tparams"><dt>Template Parameters</dt><dd>
  261. <table class="tparams">
  262. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  263. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  264. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  265. </table>
  266. </dd>
  267. </dl>
  268. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/ceil.xml">GLSL ceil man page</a> </dd>
  269. <dd>
  270. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  271. </div>
  272. </div>
  273. <a id="ga7cd77683da6361e297c56443fc70806d"></a>
  274. <h2 class="memtitle"><span class="permalink"><a href="#ga7cd77683da6361e297c56443fc70806d">&#9670;&nbsp;</a></span>clamp() <span class="overload">[1/3]</span></h2>
  275. <div class="memitem">
  276. <div class="memproto">
  277. <table class="memname">
  278. <tr>
  279. <td class="memname">GLM_FUNC_DECL GLM_CONSTEXPR genType glm::clamp </td>
  280. <td>(</td>
  281. <td class="paramtype">genType&#160;</td>
  282. <td class="paramname"><em>x</em>, </td>
  283. </tr>
  284. <tr>
  285. <td class="paramkey"></td>
  286. <td></td>
  287. <td class="paramtype">genType&#160;</td>
  288. <td class="paramname"><em>minVal</em>, </td>
  289. </tr>
  290. <tr>
  291. <td class="paramkey"></td>
  292. <td></td>
  293. <td class="paramtype">genType&#160;</td>
  294. <td class="paramname"><em>maxVal</em>&#160;</td>
  295. </tr>
  296. <tr>
  297. <td></td>
  298. <td>)</td>
  299. <td></td><td></td>
  300. </tr>
  301. </table>
  302. </div><div class="memdoc">
  303. <p>Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. </p>
  304. <dl class="tparams"><dt>Template Parameters</dt><dd>
  305. <table class="tparams">
  306. <tr><td class="paramname">genType</td><td>Floating-point or integer; scalar or vector types.</td></tr>
  307. </table>
  308. </dd>
  309. </dl>
  310. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/clamp.xml">GLSL clamp man page</a> </dd>
  311. <dd>
  312. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  313. <p class="reference">Referenced by <a class="el" href="a00461_source.html#l00050">glm::saturate()</a>.</p>
  314. </div>
  315. </div>
  316. <a id="gafba2e0674deb5953878d89483cd6323d"></a>
  317. <h2 class="memtitle"><span class="permalink"><a href="#gafba2e0674deb5953878d89483cd6323d">&#9670;&nbsp;</a></span>clamp() <span class="overload">[2/3]</span></h2>
  318. <div class="memitem">
  319. <div class="memproto">
  320. <table class="memname">
  321. <tr>
  322. <td class="memname">GLM_FUNC_DECL GLM_CONSTEXPR vec&lt;L, T, Q&gt; glm::clamp </td>
  323. <td>(</td>
  324. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  325. <td class="paramname"><em>x</em>, </td>
  326. </tr>
  327. <tr>
  328. <td class="paramkey"></td>
  329. <td></td>
  330. <td class="paramtype">T&#160;</td>
  331. <td class="paramname"><em>minVal</em>, </td>
  332. </tr>
  333. <tr>
  334. <td class="paramkey"></td>
  335. <td></td>
  336. <td class="paramtype">T&#160;</td>
  337. <td class="paramname"><em>maxVal</em>&#160;</td>
  338. </tr>
  339. <tr>
  340. <td></td>
  341. <td>)</td>
  342. <td></td><td></td>
  343. </tr>
  344. </table>
  345. </div><div class="memdoc">
  346. <p>Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. </p>
  347. <dl class="tparams"><dt>Template Parameters</dt><dd>
  348. <table class="tparams">
  349. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  350. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  351. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  352. </table>
  353. </dd>
  354. </dl>
  355. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/clamp.xml">GLSL clamp man page</a> </dd>
  356. <dd>
  357. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  358. </div>
  359. </div>
  360. <a id="gaa0f2f12e9108b09e22a3f0b2008a0b5d"></a>
  361. <h2 class="memtitle"><span class="permalink"><a href="#gaa0f2f12e9108b09e22a3f0b2008a0b5d">&#9670;&nbsp;</a></span>clamp() <span class="overload">[3/3]</span></h2>
  362. <div class="memitem">
  363. <div class="memproto">
  364. <table class="memname">
  365. <tr>
  366. <td class="memname">GLM_FUNC_DECL GLM_CONSTEXPR vec&lt;L, T, Q&gt; glm::clamp </td>
  367. <td>(</td>
  368. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  369. <td class="paramname"><em>x</em>, </td>
  370. </tr>
  371. <tr>
  372. <td class="paramkey"></td>
  373. <td></td>
  374. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  375. <td class="paramname"><em>minVal</em>, </td>
  376. </tr>
  377. <tr>
  378. <td class="paramkey"></td>
  379. <td></td>
  380. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  381. <td class="paramname"><em>maxVal</em>&#160;</td>
  382. </tr>
  383. <tr>
  384. <td></td>
  385. <td>)</td>
  386. <td></td><td></td>
  387. </tr>
  388. </table>
  389. </div><div class="memdoc">
  390. <p>Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. </p>
  391. <dl class="tparams"><dt>Template Parameters</dt><dd>
  392. <table class="tparams">
  393. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  394. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  395. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  396. </table>
  397. </dd>
  398. </dl>
  399. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/clamp.xml">GLSL clamp man page</a> </dd>
  400. <dd>
  401. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  402. </div>
  403. </div>
  404. <a id="ga1425c1c3160ec51214b03a0469a3013d"></a>
  405. <h2 class="memtitle"><span class="permalink"><a href="#ga1425c1c3160ec51214b03a0469a3013d">&#9670;&nbsp;</a></span>floatBitsToInt() <span class="overload">[1/2]</span></h2>
  406. <div class="memitem">
  407. <div class="memproto">
  408. <table class="memname">
  409. <tr>
  410. <td class="memname">GLM_FUNC_DECL int glm::floatBitsToInt </td>
  411. <td>(</td>
  412. <td class="paramtype">float const &amp;&#160;</td>
  413. <td class="paramname"><em>v</em></td><td>)</td>
  414. <td></td>
  415. </tr>
  416. </table>
  417. </div><div class="memdoc">
  418. <p>Returns a signed integer value representing the encoding of a floating-point value. </p>
  419. <p>The floating-point value's bit-level representation is preserved.</p>
  420. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/floatBitsToInt.xml">GLSL floatBitsToInt man page</a> </dd>
  421. <dd>
  422. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  423. </div>
  424. </div>
  425. <a id="ga99f7d62f78ac5ea3b49bae715c9488ed"></a>
  426. <h2 class="memtitle"><span class="permalink"><a href="#ga99f7d62f78ac5ea3b49bae715c9488ed">&#9670;&nbsp;</a></span>floatBitsToInt() <span class="overload">[2/2]</span></h2>
  427. <div class="memitem">
  428. <div class="memproto">
  429. <table class="memname">
  430. <tr>
  431. <td class="memname">GLM_FUNC_DECL vec&lt;L, int, Q&gt; glm::floatBitsToInt </td>
  432. <td>(</td>
  433. <td class="paramtype">vec&lt; L, float, Q &gt; const &amp;&#160;</td>
  434. <td class="paramname"><em>v</em></td><td>)</td>
  435. <td></td>
  436. </tr>
  437. </table>
  438. </div><div class="memdoc">
  439. <p>Returns a signed integer value representing the encoding of a floating-point value. </p>
  440. <p>The floatingpoint value's bit-level representation is preserved.</p>
  441. <dl class="tparams"><dt>Template Parameters</dt><dd>
  442. <table class="tparams">
  443. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  444. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  445. </table>
  446. </dd>
  447. </dl>
  448. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/floatBitsToInt.xml">GLSL floatBitsToInt man page</a> </dd>
  449. <dd>
  450. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  451. </div>
  452. </div>
  453. <a id="ga70e0271c34af52f3100c7960e18c3f2b"></a>
  454. <h2 class="memtitle"><span class="permalink"><a href="#ga70e0271c34af52f3100c7960e18c3f2b">&#9670;&nbsp;</a></span>floatBitsToUint() <span class="overload">[1/2]</span></h2>
  455. <div class="memitem">
  456. <div class="memproto">
  457. <table class="memname">
  458. <tr>
  459. <td class="memname">GLM_FUNC_DECL uint glm::floatBitsToUint </td>
  460. <td>(</td>
  461. <td class="paramtype">float const &amp;&#160;</td>
  462. <td class="paramname"><em>v</em></td><td>)</td>
  463. <td></td>
  464. </tr>
  465. </table>
  466. </div><div class="memdoc">
  467. <p>Returns a unsigned integer value representing the encoding of a floating-point value. </p>
  468. <p>The floatingpoint value's bit-level representation is preserved.</p>
  469. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/floatBitsToUint.xml">GLSL floatBitsToUint man page</a> </dd>
  470. <dd>
  471. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  472. </div>
  473. </div>
  474. <a id="ga49418ba4c8a60fbbb5d57b705f3e26db"></a>
  475. <h2 class="memtitle"><span class="permalink"><a href="#ga49418ba4c8a60fbbb5d57b705f3e26db">&#9670;&nbsp;</a></span>floatBitsToUint() <span class="overload">[2/2]</span></h2>
  476. <div class="memitem">
  477. <div class="memproto">
  478. <table class="memname">
  479. <tr>
  480. <td class="memname">GLM_FUNC_DECL vec&lt;L, uint, Q&gt; glm::floatBitsToUint </td>
  481. <td>(</td>
  482. <td class="paramtype">vec&lt; L, float, Q &gt; const &amp;&#160;</td>
  483. <td class="paramname"><em>v</em></td><td>)</td>
  484. <td></td>
  485. </tr>
  486. </table>
  487. </div><div class="memdoc">
  488. <p>Returns a unsigned integer value representing the encoding of a floating-point value. </p>
  489. <p>The floatingpoint value's bit-level representation is preserved.</p>
  490. <dl class="tparams"><dt>Template Parameters</dt><dd>
  491. <table class="tparams">
  492. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  493. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  494. </table>
  495. </dd>
  496. </dl>
  497. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/floatBitsToUint.xml">GLSL floatBitsToUint man page</a> </dd>
  498. <dd>
  499. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  500. </div>
  501. </div>
  502. <a id="gaa9d0742639e85b29c7c5de11cfd6840d"></a>
  503. <h2 class="memtitle"><span class="permalink"><a href="#gaa9d0742639e85b29c7c5de11cfd6840d">&#9670;&nbsp;</a></span>floor()</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, T, Q&gt; glm::floor </td>
  509. <td>(</td>
  510. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  511. <td class="paramname"><em>x</em></td><td>)</td>
  512. <td></td>
  513. </tr>
  514. </table>
  515. </div><div class="memdoc">
  516. <p>Returns a value equal to the nearest integer that is less then or equal to x. </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 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 href="http://www.opengl.org/sdk/docs/manglsl/xhtml/floor.xml">GLSL floor man page</a> </dd>
  526. <dd>
  527. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  528. </div>
  529. </div>
  530. <a id="gad0f444d4b81cc53c3b6edf5aa25078c2"></a>
  531. <h2 class="memtitle"><span class="permalink"><a href="#gad0f444d4b81cc53c3b6edf5aa25078c2">&#9670;&nbsp;</a></span>fma()</h2>
  532. <div class="memitem">
  533. <div class="memproto">
  534. <table class="memname">
  535. <tr>
  536. <td class="memname">GLM_FUNC_DECL genType glm::fma </td>
  537. <td>(</td>
  538. <td class="paramtype">genType const &amp;&#160;</td>
  539. <td class="paramname"><em>a</em>, </td>
  540. </tr>
  541. <tr>
  542. <td class="paramkey"></td>
  543. <td></td>
  544. <td class="paramtype">genType const &amp;&#160;</td>
  545. <td class="paramname"><em>b</em>, </td>
  546. </tr>
  547. <tr>
  548. <td class="paramkey"></td>
  549. <td></td>
  550. <td class="paramtype">genType const &amp;&#160;</td>
  551. <td class="paramname"><em>c</em>&#160;</td>
  552. </tr>
  553. <tr>
  554. <td></td>
  555. <td>)</td>
  556. <td></td><td></td>
  557. </tr>
  558. </table>
  559. </div><div class="memdoc">
  560. <p>Computes and returns a * b + c. </p>
  561. <dl class="tparams"><dt>Template Parameters</dt><dd>
  562. <table class="tparams">
  563. <tr><td class="paramname">genType</td><td>Floating-point scalar or vector types.</td></tr>
  564. </table>
  565. </dd>
  566. </dl>
  567. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/fma.xml">GLSL fma man page</a> </dd>
  568. <dd>
  569. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  570. </div>
  571. </div>
  572. <a id="ga8ba89e40e55ae5cdf228548f9b7639c7"></a>
  573. <h2 class="memtitle"><span class="permalink"><a href="#ga8ba89e40e55ae5cdf228548f9b7639c7">&#9670;&nbsp;</a></span>fract() <span class="overload">[1/2]</span></h2>
  574. <div class="memitem">
  575. <div class="memproto">
  576. <table class="memname">
  577. <tr>
  578. <td class="memname">GLM_FUNC_DECL genType glm::fract </td>
  579. <td>(</td>
  580. <td class="paramtype">genType&#160;</td>
  581. <td class="paramname"><em>x</em></td><td>)</td>
  582. <td></td>
  583. </tr>
  584. </table>
  585. </div><div class="memdoc">
  586. <p>Return x - floor(x). </p>
  587. <dl class="tparams"><dt>Template Parameters</dt><dd>
  588. <table class="tparams">
  589. <tr><td class="paramname">genType</td><td>Floating-point scalar or vector types.</td></tr>
  590. </table>
  591. </dd>
  592. </dl>
  593. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/fract.xml">GLSL fract man page</a> </dd>
  594. <dd>
  595. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  596. </div>
  597. </div>
  598. <a id="ga2df623004f634b440d61e018d62c751b"></a>
  599. <h2 class="memtitle"><span class="permalink"><a href="#ga2df623004f634b440d61e018d62c751b">&#9670;&nbsp;</a></span>fract() <span class="overload">[2/2]</span></h2>
  600. <div class="memitem">
  601. <div class="memproto">
  602. <table class="memname">
  603. <tr>
  604. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::fract </td>
  605. <td>(</td>
  606. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  607. <td class="paramname"><em>x</em></td><td>)</td>
  608. <td></td>
  609. </tr>
  610. </table>
  611. </div><div class="memdoc">
  612. <p>Return x - floor(x). </p>
  613. <dl class="tparams"><dt>Template Parameters</dt><dd>
  614. <table class="tparams">
  615. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  616. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  617. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  618. </table>
  619. </dd>
  620. </dl>
  621. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/fract.xml">GLSL fract man page</a> </dd>
  622. <dd>
  623. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  624. </div>
  625. </div>
  626. <a id="ga20620e83544d1a988857a3bc4ebe0e1d"></a>
  627. <h2 class="memtitle"><span class="permalink"><a href="#ga20620e83544d1a988857a3bc4ebe0e1d">&#9670;&nbsp;</a></span>frexp()</h2>
  628. <div class="memitem">
  629. <div class="memproto">
  630. <table class="memname">
  631. <tr>
  632. <td class="memname">GLM_FUNC_DECL genType glm::frexp </td>
  633. <td>(</td>
  634. <td class="paramtype">genType const &amp;&#160;</td>
  635. <td class="paramname"><em>x</em>, </td>
  636. </tr>
  637. <tr>
  638. <td class="paramkey"></td>
  639. <td></td>
  640. <td class="paramtype">genIType &amp;&#160;</td>
  641. <td class="paramname"><em>exp</em>&#160;</td>
  642. </tr>
  643. <tr>
  644. <td></td>
  645. <td>)</td>
  646. <td></td><td></td>
  647. </tr>
  648. </table>
  649. </div><div class="memdoc">
  650. <p>Splits x into a floating-point significand in the range [0.5, 1.0) and an integral exponent of two, such that: x = significand * exp(2, exponent) </p>
  651. <p>The significand is returned by the function and the exponent is returned in the parameter exp. For a floating-point value of zero, the significant and exponent are both zero. For a floating-point value that is an infinity or is not a number, the results are undefined.</p>
  652. <dl class="tparams"><dt>Template Parameters</dt><dd>
  653. <table class="tparams">
  654. <tr><td class="paramname">genType</td><td>Floating-point scalar or vector types.</td></tr>
  655. </table>
  656. </dd>
  657. </dl>
  658. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/frexp.xml">GLSL frexp man page</a> </dd>
  659. <dd>
  660. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  661. </div>
  662. </div>
  663. <a id="ga4fb7c21c2dce064b26fd9ccdaf9adcd4"></a>
  664. <h2 class="memtitle"><span class="permalink"><a href="#ga4fb7c21c2dce064b26fd9ccdaf9adcd4">&#9670;&nbsp;</a></span>intBitsToFloat() <span class="overload">[1/2]</span></h2>
  665. <div class="memitem">
  666. <div class="memproto">
  667. <table class="memname">
  668. <tr>
  669. <td class="memname">GLM_FUNC_DECL float glm::intBitsToFloat </td>
  670. <td>(</td>
  671. <td class="paramtype">int const &amp;&#160;</td>
  672. <td class="paramname"><em>v</em></td><td>)</td>
  673. <td></td>
  674. </tr>
  675. </table>
  676. </div><div class="memdoc">
  677. <p>Returns a floating-point value corresponding to a signed integer encoding of a floating-point value. </p>
  678. <p>If an inf or NaN is passed in, it will not signal, and the resulting floating point value is unspecified. Otherwise, the bit-level representation is preserved.</p>
  679. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/intBitsToFloat.xml">GLSL intBitsToFloat man page</a> </dd>
  680. <dd>
  681. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  682. </div>
  683. </div>
  684. <a id="ga7a0a8291a1cf3e1c2aee33030a1bd7b0"></a>
  685. <h2 class="memtitle"><span class="permalink"><a href="#ga7a0a8291a1cf3e1c2aee33030a1bd7b0">&#9670;&nbsp;</a></span>intBitsToFloat() <span class="overload">[2/2]</span></h2>
  686. <div class="memitem">
  687. <div class="memproto">
  688. <table class="memname">
  689. <tr>
  690. <td class="memname">GLM_FUNC_DECL vec&lt;L, float, Q&gt; glm::intBitsToFloat </td>
  691. <td>(</td>
  692. <td class="paramtype">vec&lt; L, int, Q &gt; const &amp;&#160;</td>
  693. <td class="paramname"><em>v</em></td><td>)</td>
  694. <td></td>
  695. </tr>
  696. </table>
  697. </div><div class="memdoc">
  698. <p>Returns a floating-point value corresponding to a signed integer encoding of a floating-point value. </p>
  699. <p>If an inf or NaN is passed in, it will not signal, and the resulting floating point value is unspecified. Otherwise, the bit-level representation is preserved.</p>
  700. <dl class="tparams"><dt>Template Parameters</dt><dd>
  701. <table class="tparams">
  702. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  703. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  704. </table>
  705. </dd>
  706. </dl>
  707. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/intBitsToFloat.xml">GLSL intBitsToFloat man page</a> </dd>
  708. <dd>
  709. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  710. </div>
  711. </div>
  712. <a id="ga2885587c23a106301f20443896365b62"></a>
  713. <h2 class="memtitle"><span class="permalink"><a href="#ga2885587c23a106301f20443896365b62">&#9670;&nbsp;</a></span>isinf()</h2>
  714. <div class="memitem">
  715. <div class="memproto">
  716. <table class="memname">
  717. <tr>
  718. <td class="memname">GLM_FUNC_DECL vec&lt;L, bool, Q&gt; glm::isinf </td>
  719. <td>(</td>
  720. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  721. <td class="paramname"><em>x</em></td><td>)</td>
  722. <td></td>
  723. </tr>
  724. </table>
  725. </div><div class="memdoc">
  726. <p>Returns true if x holds a positive infinity or negative infinity representation in the underlying implementation's set of floating point representations. </p>
  727. <p>Returns false otherwise, including for implementations with no infinity representations.</p>
  728. <dl class="tparams"><dt>Template Parameters</dt><dd>
  729. <table class="tparams">
  730. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  731. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  732. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  733. </table>
  734. </dd>
  735. </dl>
  736. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/isinf.xml">GLSL isinf man page</a> </dd>
  737. <dd>
  738. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  739. </div>
  740. </div>
  741. <a id="ga29ef934c00306490de837b4746b4e14d"></a>
  742. <h2 class="memtitle"><span class="permalink"><a href="#ga29ef934c00306490de837b4746b4e14d">&#9670;&nbsp;</a></span>isnan()</h2>
  743. <div class="memitem">
  744. <div class="memproto">
  745. <table class="memname">
  746. <tr>
  747. <td class="memname">GLM_FUNC_DECL vec&lt;L, bool, Q&gt; glm::isnan </td>
  748. <td>(</td>
  749. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  750. <td class="paramname"><em>x</em></td><td>)</td>
  751. <td></td>
  752. </tr>
  753. </table>
  754. </div><div class="memdoc">
  755. <p>Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of floating point representations. </p>
  756. <p>Returns false otherwise, including for implementations with no NaN representations.</p>
  757. <p>/!\ When using compiler fast math, this function may fail.</p>
  758. <dl class="tparams"><dt>Template Parameters</dt><dd>
  759. <table class="tparams">
  760. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  761. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  762. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  763. </table>
  764. </dd>
  765. </dl>
  766. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/isnan.xml">GLSL isnan man page</a> </dd>
  767. <dd>
  768. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  769. </div>
  770. </div>
  771. <a id="ga52e319d7289b849ec92055abd4830533"></a>
  772. <h2 class="memtitle"><span class="permalink"><a href="#ga52e319d7289b849ec92055abd4830533">&#9670;&nbsp;</a></span>ldexp()</h2>
  773. <div class="memitem">
  774. <div class="memproto">
  775. <table class="memname">
  776. <tr>
  777. <td class="memname">GLM_FUNC_DECL genType glm::ldexp </td>
  778. <td>(</td>
  779. <td class="paramtype">genType const &amp;&#160;</td>
  780. <td class="paramname"><em>x</em>, </td>
  781. </tr>
  782. <tr>
  783. <td class="paramkey"></td>
  784. <td></td>
  785. <td class="paramtype">genIType const &amp;&#160;</td>
  786. <td class="paramname"><em>exp</em>&#160;</td>
  787. </tr>
  788. <tr>
  789. <td></td>
  790. <td>)</td>
  791. <td></td><td></td>
  792. </tr>
  793. </table>
  794. </div><div class="memdoc">
  795. <p>Builds a floating-point number from x and the corresponding integral exponent of two in exp, returning: significand * exp(2, exponent) </p>
  796. <p>If this product is too large to be represented in the floating-point type, the result is undefined.</p>
  797. <dl class="tparams"><dt>Template Parameters</dt><dd>
  798. <table class="tparams">
  799. <tr><td class="paramname">genType</td><td>Floating-point scalar or vector types.</td></tr>
  800. </table>
  801. </dd>
  802. </dl>
  803. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/ldexp.xml">GLSL ldexp man page</a>; </dd>
  804. <dd>
  805. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  806. </div>
  807. </div>
  808. <a id="gae02d42887fc5570451f880e3c624b9ac"></a>
  809. <h2 class="memtitle"><span class="permalink"><a href="#gae02d42887fc5570451f880e3c624b9ac">&#9670;&nbsp;</a></span>max() <span class="overload">[1/3]</span></h2>
  810. <div class="memitem">
  811. <div class="memproto">
  812. <table class="memname">
  813. <tr>
  814. <td class="memname">GLM_FUNC_DECL GLM_CONSTEXPR genType glm::max </td>
  815. <td>(</td>
  816. <td class="paramtype">genType&#160;</td>
  817. <td class="paramname"><em>x</em>, </td>
  818. </tr>
  819. <tr>
  820. <td class="paramkey"></td>
  821. <td></td>
  822. <td class="paramtype">genType&#160;</td>
  823. <td class="paramname"><em>y</em>&#160;</td>
  824. </tr>
  825. <tr>
  826. <td></td>
  827. <td>)</td>
  828. <td></td><td></td>
  829. </tr>
  830. </table>
  831. </div><div class="memdoc">
  832. <p>Returns y if x &lt; y; otherwise, it returns x. </p>
  833. <dl class="tparams"><dt>Template Parameters</dt><dd>
  834. <table class="tparams">
  835. <tr><td class="paramname">genType</td><td>Floating-point or integer; scalar or vector types.</td></tr>
  836. </table>
  837. </dd>
  838. </dl>
  839. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/max.xml">GLSL max man page</a> </dd>
  840. <dd>
  841. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  842. </div>
  843. </div>
  844. <a id="ga03e45d6e60d1c36edb00c52edeea0f31"></a>
  845. <h2 class="memtitle"><span class="permalink"><a href="#ga03e45d6e60d1c36edb00c52edeea0f31">&#9670;&nbsp;</a></span>max() <span class="overload">[2/3]</span></h2>
  846. <div class="memitem">
  847. <div class="memproto">
  848. <table class="memname">
  849. <tr>
  850. <td class="memname">GLM_FUNC_DECL GLM_CONSTEXPR vec&lt;L, T, Q&gt; glm::max </td>
  851. <td>(</td>
  852. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  853. <td class="paramname"><em>x</em>, </td>
  854. </tr>
  855. <tr>
  856. <td class="paramkey"></td>
  857. <td></td>
  858. <td class="paramtype">T&#160;</td>
  859. <td class="paramname"><em>y</em>&#160;</td>
  860. </tr>
  861. <tr>
  862. <td></td>
  863. <td>)</td>
  864. <td></td><td></td>
  865. </tr>
  866. </table>
  867. </div><div class="memdoc">
  868. <p>Returns y if x &lt; y; otherwise, it returns x. </p>
  869. <dl class="tparams"><dt>Template Parameters</dt><dd>
  870. <table class="tparams">
  871. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  872. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  873. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  874. </table>
  875. </dd>
  876. </dl>
  877. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/max.xml">GLSL max man page</a> </dd>
  878. <dd>
  879. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  880. </div>
  881. </div>
  882. <a id="gac1fec0c3303b572a6d4697a637213870"></a>
  883. <h2 class="memtitle"><span class="permalink"><a href="#gac1fec0c3303b572a6d4697a637213870">&#9670;&nbsp;</a></span>max() <span class="overload">[3/3]</span></h2>
  884. <div class="memitem">
  885. <div class="memproto">
  886. <table class="memname">
  887. <tr>
  888. <td class="memname">GLM_FUNC_DECL GLM_CONSTEXPR vec&lt;L, T, Q&gt; glm::max </td>
  889. <td>(</td>
  890. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  891. <td class="paramname"><em>x</em>, </td>
  892. </tr>
  893. <tr>
  894. <td class="paramkey"></td>
  895. <td></td>
  896. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  897. <td class="paramname"><em>y</em>&#160;</td>
  898. </tr>
  899. <tr>
  900. <td></td>
  901. <td>)</td>
  902. <td></td><td></td>
  903. </tr>
  904. </table>
  905. </div><div class="memdoc">
  906. <p>Returns y if x &lt; y; otherwise, it returns x. </p>
  907. <dl class="tparams"><dt>Template Parameters</dt><dd>
  908. <table class="tparams">
  909. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  910. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  911. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  912. </table>
  913. </dd>
  914. </dl>
  915. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/max.xml">GLSL max man page</a> </dd>
  916. <dd>
  917. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  918. </div>
  919. </div>
  920. <a id="ga6cf8098827054a270ee36b18e30d471d"></a>
  921. <h2 class="memtitle"><span class="permalink"><a href="#ga6cf8098827054a270ee36b18e30d471d">&#9670;&nbsp;</a></span>min() <span class="overload">[1/3]</span></h2>
  922. <div class="memitem">
  923. <div class="memproto">
  924. <table class="memname">
  925. <tr>
  926. <td class="memname">GLM_FUNC_DECL GLM_CONSTEXPR genType glm::min </td>
  927. <td>(</td>
  928. <td class="paramtype">genType&#160;</td>
  929. <td class="paramname"><em>x</em>, </td>
  930. </tr>
  931. <tr>
  932. <td class="paramkey"></td>
  933. <td></td>
  934. <td class="paramtype">genType&#160;</td>
  935. <td class="paramname"><em>y</em>&#160;</td>
  936. </tr>
  937. <tr>
  938. <td></td>
  939. <td>)</td>
  940. <td></td><td></td>
  941. </tr>
  942. </table>
  943. </div><div class="memdoc">
  944. <p>Returns y if y &lt; x; otherwise, it returns x. </p>
  945. <dl class="tparams"><dt>Template Parameters</dt><dd>
  946. <table class="tparams">
  947. <tr><td class="paramname">genType</td><td>Floating-point or integer; scalar or vector types.</td></tr>
  948. </table>
  949. </dd>
  950. </dl>
  951. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/min.xml">GLSL min man page</a> </dd>
  952. <dd>
  953. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  954. </div>
  955. </div>
  956. <a id="gaa7d015eba1f9f48519251f4abe69b14d"></a>
  957. <h2 class="memtitle"><span class="permalink"><a href="#gaa7d015eba1f9f48519251f4abe69b14d">&#9670;&nbsp;</a></span>min() <span class="overload">[2/3]</span></h2>
  958. <div class="memitem">
  959. <div class="memproto">
  960. <table class="memname">
  961. <tr>
  962. <td class="memname">GLM_FUNC_DECL GLM_CONSTEXPR vec&lt;L, T, Q&gt; glm::min </td>
  963. <td>(</td>
  964. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  965. <td class="paramname"><em>x</em>, </td>
  966. </tr>
  967. <tr>
  968. <td class="paramkey"></td>
  969. <td></td>
  970. <td class="paramtype">T&#160;</td>
  971. <td class="paramname"><em>y</em>&#160;</td>
  972. </tr>
  973. <tr>
  974. <td></td>
  975. <td>)</td>
  976. <td></td><td></td>
  977. </tr>
  978. </table>
  979. </div><div class="memdoc">
  980. <p>Returns y if y &lt; x; otherwise, it returns x. </p>
  981. <dl class="tparams"><dt>Template Parameters</dt><dd>
  982. <table class="tparams">
  983. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  984. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  985. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  986. </table>
  987. </dd>
  988. </dl>
  989. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/min.xml">GLSL min man page</a> </dd>
  990. <dd>
  991. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  992. </div>
  993. </div>
  994. <a id="ga31f49ef9e7d1beb003160c5e009b0c48"></a>
  995. <h2 class="memtitle"><span class="permalink"><a href="#ga31f49ef9e7d1beb003160c5e009b0c48">&#9670;&nbsp;</a></span>min() <span class="overload">[3/3]</span></h2>
  996. <div class="memitem">
  997. <div class="memproto">
  998. <table class="memname">
  999. <tr>
  1000. <td class="memname">GLM_FUNC_DECL GLM_CONSTEXPR vec&lt;L, T, Q&gt; glm::min </td>
  1001. <td>(</td>
  1002. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  1003. <td class="paramname"><em>x</em>, </td>
  1004. </tr>
  1005. <tr>
  1006. <td class="paramkey"></td>
  1007. <td></td>
  1008. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  1009. <td class="paramname"><em>y</em>&#160;</td>
  1010. </tr>
  1011. <tr>
  1012. <td></td>
  1013. <td>)</td>
  1014. <td></td><td></td>
  1015. </tr>
  1016. </table>
  1017. </div><div class="memdoc">
  1018. <p>Returns y if y &lt; x; otherwise, it returns x. </p>
  1019. <dl class="tparams"><dt>Template Parameters</dt><dd>
  1020. <table class="tparams">
  1021. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  1022. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  1023. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  1024. </table>
  1025. </dd>
  1026. </dl>
  1027. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/min.xml">GLSL min man page</a> </dd>
  1028. <dd>
  1029. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  1030. </div>
  1031. </div>
  1032. <a id="ga8e93f374aae27d1a88b921860351f8d4"></a>
  1033. <h2 class="memtitle"><span class="permalink"><a href="#ga8e93f374aae27d1a88b921860351f8d4">&#9670;&nbsp;</a></span>mix()</h2>
  1034. <div class="memitem">
  1035. <div class="memproto">
  1036. <table class="memname">
  1037. <tr>
  1038. <td class="memname">GLM_FUNC_DECL genTypeT glm::mix </td>
  1039. <td>(</td>
  1040. <td class="paramtype">genTypeT&#160;</td>
  1041. <td class="paramname"><em>x</em>, </td>
  1042. </tr>
  1043. <tr>
  1044. <td class="paramkey"></td>
  1045. <td></td>
  1046. <td class="paramtype">genTypeT&#160;</td>
  1047. <td class="paramname"><em>y</em>, </td>
  1048. </tr>
  1049. <tr>
  1050. <td class="paramkey"></td>
  1051. <td></td>
  1052. <td class="paramtype">genTypeU&#160;</td>
  1053. <td class="paramname"><em>a</em>&#160;</td>
  1054. </tr>
  1055. <tr>
  1056. <td></td>
  1057. <td>)</td>
  1058. <td></td><td></td>
  1059. </tr>
  1060. </table>
  1061. </div><div class="memdoc">
  1062. <p>If genTypeU is a floating scalar or vector: Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. </p>
  1063. <p>The value for a is not restricted to the range [0, 1].</p>
  1064. <p>If genTypeU is a boolean scalar or vector: Selects which vector each returned component comes from. For a component of 'a' that is false, the corresponding component of 'x' is returned. For a component of 'a' that is true, the corresponding component of 'y' is returned. Components of 'x' and 'y' that are not selected are allowed to be invalid floating point values and will have no effect on the results. Thus, this provides different functionality than genType mix(genType x, genType y, genType(a)) where a is a Boolean vector.</p>
  1065. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/mix.xml">GLSL mix man page</a> </dd>
  1066. <dd>
  1067. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a></dd></dl>
  1068. <dl class="params"><dt>Parameters</dt><dd>
  1069. <table class="params">
  1070. <tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>Value to interpolate. </td></tr>
  1071. <tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>Value to interpolate. </td></tr>
  1072. <tr><td class="paramdir">[in]</td><td class="paramname">a</td><td>Interpolant.</td></tr>
  1073. </table>
  1074. </dd>
  1075. </dl>
  1076. <dl class="tparams"><dt>Template Parameters</dt><dd>
  1077. <table class="tparams">
  1078. <tr><td class="paramname">genTypeT</td><td>Floating point scalar or vector. </td></tr>
  1079. <tr><td class="paramname">genTypeU</td><td>Floating point or boolean scalar or vector. It can't be a vector if it is the length of genTypeT.</td></tr>
  1080. </table>
  1081. </dd>
  1082. </dl>
  1083. <div class="fragment"><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="a00386.html">glm/glm.hpp</a>&gt;</span></div><div class="line">...</div><div class="line">float a;</div><div class="line"><span class="keywordtype">bool</span> b;</div><div class="line"><a class="code" href="a00699.html#ga5b83ae3d0fdec519c038e4d2cf967cf0">glm::dvec3</a> <a class="code" href="a00708.html#ga4b7956eb6e2fbedfc7cf2e46e85c5139">e</a>;</div><div class="line"><a class="code" href="a00699.html#ga5b83ae3d0fdec519c038e4d2cf967cf0">glm::dvec3</a> f;</div><div class="line"><a class="code" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">glm::vec4</a> g;</div><div class="line"><a class="code" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">glm::vec4</a> h;</div><div class="line">...</div><div class="line">glm::vec4 r = <a class="code" href="a00662.html#ga8e93f374aae27d1a88b921860351f8d4">glm::mix</a>(g, h, a); <span class="comment">// Interpolate with a floating-point scalar two vectors.</span></div><div class="line"><a class="code" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">glm::vec4</a> s = <a class="code" href="a00662.html#ga8e93f374aae27d1a88b921860351f8d4">glm::mix</a>(g, h, b); <span class="comment">// Returns g or h;</span></div><div class="line"><a class="code" href="a00699.html#ga5b83ae3d0fdec519c038e4d2cf967cf0">glm::dvec3</a> t = <a class="code" href="a00662.html#ga8e93f374aae27d1a88b921860351f8d4">glm::mix</a>(<a class="code" href="a00708.html#ga4b7956eb6e2fbedfc7cf2e46e85c5139">e</a>, f, a); <span class="comment">// Types of the third parameter is not required to match with the first and the second.</span></div><div class="line"><a class="code" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">glm::vec4</a> u = <a class="code" href="a00662.html#ga8e93f374aae27d1a88b921860351f8d4">glm::mix</a>(g, h, r); <span class="comment">// Interpolations can be perform per component with a vector for the last parameter.</span></div></div><!-- fragment -->
  1084. <p class="reference">Referenced by <a class="el" href="a00461_source.html#l00041">glm::lerp()</a>.</p>
  1085. </div>
  1086. </div>
  1087. <a id="ga9b197a452cd52db3c5c18bac72bd7798"></a>
  1088. <h2 class="memtitle"><span class="permalink"><a href="#ga9b197a452cd52db3c5c18bac72bd7798">&#9670;&nbsp;</a></span>mod()</h2>
  1089. <div class="memitem">
  1090. <div class="memproto">
  1091. <table class="memname">
  1092. <tr>
  1093. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::mod </td>
  1094. <td>(</td>
  1095. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  1096. <td class="paramname"><em>x</em>, </td>
  1097. </tr>
  1098. <tr>
  1099. <td class="paramkey"></td>
  1100. <td></td>
  1101. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  1102. <td class="paramname"><em>y</em>&#160;</td>
  1103. </tr>
  1104. <tr>
  1105. <td></td>
  1106. <td>)</td>
  1107. <td></td><td></td>
  1108. </tr>
  1109. </table>
  1110. </div><div class="memdoc">
  1111. <p>Modulus. </p>
  1112. <p>Returns x - y * floor(x / y) for each component in x using the floating point value y.</p>
  1113. <dl class="tparams"><dt>Template Parameters</dt><dd>
  1114. <table class="tparams">
  1115. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  1116. <tr><td class="paramname">T</td><td>Floating-point scalar types, include glm/gtc/integer for integer scalar types support </td></tr>
  1117. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  1118. </table>
  1119. </dd>
  1120. </dl>
  1121. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/mod.xml">GLSL mod man page</a> </dd>
  1122. <dd>
  1123. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  1124. </div>
  1125. </div>
  1126. <a id="ga85e33f139b8db1b39b590a5713b9e679"></a>
  1127. <h2 class="memtitle"><span class="permalink"><a href="#ga85e33f139b8db1b39b590a5713b9e679">&#9670;&nbsp;</a></span>modf()</h2>
  1128. <div class="memitem">
  1129. <div class="memproto">
  1130. <table class="memname">
  1131. <tr>
  1132. <td class="memname">GLM_FUNC_DECL genType glm::modf </td>
  1133. <td>(</td>
  1134. <td class="paramtype">genType&#160;</td>
  1135. <td class="paramname"><em>x</em>, </td>
  1136. </tr>
  1137. <tr>
  1138. <td class="paramkey"></td>
  1139. <td></td>
  1140. <td class="paramtype">genType &amp;&#160;</td>
  1141. <td class="paramname"><em>i</em>&#160;</td>
  1142. </tr>
  1143. <tr>
  1144. <td></td>
  1145. <td>)</td>
  1146. <td></td><td></td>
  1147. </tr>
  1148. </table>
  1149. </div><div class="memdoc">
  1150. <p>Returns the fractional part of x and sets i to the integer part (as a whole number floating point value). </p>
  1151. <p>Both the return value and the output parameter will have the same sign as x.</p>
  1152. <dl class="tparams"><dt>Template Parameters</dt><dd>
  1153. <table class="tparams">
  1154. <tr><td class="paramname">genType</td><td>Floating-point scalar or vector types.</td></tr>
  1155. </table>
  1156. </dd>
  1157. </dl>
  1158. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/modf.xml">GLSL modf man page</a> </dd>
  1159. <dd>
  1160. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  1161. </div>
  1162. </div>
  1163. <a id="gafa03aca8c4713e1cc892aa92ca135a7e"></a>
  1164. <h2 class="memtitle"><span class="permalink"><a href="#gafa03aca8c4713e1cc892aa92ca135a7e">&#9670;&nbsp;</a></span>round()</h2>
  1165. <div class="memitem">
  1166. <div class="memproto">
  1167. <table class="memname">
  1168. <tr>
  1169. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::round </td>
  1170. <td>(</td>
  1171. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  1172. <td class="paramname"><em>x</em></td><td>)</td>
  1173. <td></td>
  1174. </tr>
  1175. </table>
  1176. </div><div class="memdoc">
  1177. <p>Returns a value equal to the nearest integer to x. </p>
  1178. <p>The fraction 0.5 will round in a direction chosen by the implementation, presumably the direction that is fastest. This includes the possibility that round(x) returns the same value as roundEven(x) for all values of x.</p>
  1179. <dl class="tparams"><dt>Template Parameters</dt><dd>
  1180. <table class="tparams">
  1181. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  1182. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  1183. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  1184. </table>
  1185. </dd>
  1186. </dl>
  1187. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/round.xml">GLSL round man page</a> </dd>
  1188. <dd>
  1189. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  1190. </div>
  1191. </div>
  1192. <a id="ga76b81785045a057989a84d99aeeb1578"></a>
  1193. <h2 class="memtitle"><span class="permalink"><a href="#ga76b81785045a057989a84d99aeeb1578">&#9670;&nbsp;</a></span>roundEven()</h2>
  1194. <div class="memitem">
  1195. <div class="memproto">
  1196. <table class="memname">
  1197. <tr>
  1198. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::roundEven </td>
  1199. <td>(</td>
  1200. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  1201. <td class="paramname"><em>x</em></td><td>)</td>
  1202. <td></td>
  1203. </tr>
  1204. </table>
  1205. </div><div class="memdoc">
  1206. <p>Returns a value equal to the nearest integer to x. </p>
  1207. <p>A fractional part of 0.5 will round toward the nearest even integer. (Both 3.5 and 4.5 for x will return 4.0.)</p>
  1208. <dl class="tparams"><dt>Template Parameters</dt><dd>
  1209. <table class="tparams">
  1210. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  1211. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  1212. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  1213. </table>
  1214. </dd>
  1215. </dl>
  1216. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/roundEven.xml">GLSL roundEven man page</a> </dd>
  1217. <dd>
  1218. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd>
  1219. <dd>
  1220. <a href="http://developer.amd.com/documentation/articles/pages/New-Round-to-Even-Technique.aspx">New round to even technique</a> </dd></dl>
  1221. </div>
  1222. </div>
  1223. <a id="ga1e2e5cfff800056540e32f6c9b604b28"></a>
  1224. <h2 class="memtitle"><span class="permalink"><a href="#ga1e2e5cfff800056540e32f6c9b604b28">&#9670;&nbsp;</a></span>sign()</h2>
  1225. <div class="memitem">
  1226. <div class="memproto">
  1227. <table class="memname">
  1228. <tr>
  1229. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::sign </td>
  1230. <td>(</td>
  1231. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  1232. <td class="paramname"><em>x</em></td><td>)</td>
  1233. <td></td>
  1234. </tr>
  1235. </table>
  1236. </div><div class="memdoc">
  1237. <p>Returns 1.0 if x &gt; 0, 0.0 if x == 0, or -1.0 if x &lt; 0. </p>
  1238. <dl class="tparams"><dt>Template Parameters</dt><dd>
  1239. <table class="tparams">
  1240. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  1241. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  1242. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  1243. </table>
  1244. </dd>
  1245. </dl>
  1246. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/sign.xml">GLSL sign man page</a> </dd>
  1247. <dd>
  1248. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  1249. </div>
  1250. </div>
  1251. <a id="ga562edf7eca082cc5b7a0aaf180436daf"></a>
  1252. <h2 class="memtitle"><span class="permalink"><a href="#ga562edf7eca082cc5b7a0aaf180436daf">&#9670;&nbsp;</a></span>smoothstep()</h2>
  1253. <div class="memitem">
  1254. <div class="memproto">
  1255. <table class="memname">
  1256. <tr>
  1257. <td class="memname">GLM_FUNC_DECL genType glm::smoothstep </td>
  1258. <td>(</td>
  1259. <td class="paramtype">genType&#160;</td>
  1260. <td class="paramname"><em>edge0</em>, </td>
  1261. </tr>
  1262. <tr>
  1263. <td class="paramkey"></td>
  1264. <td></td>
  1265. <td class="paramtype">genType&#160;</td>
  1266. <td class="paramname"><em>edge1</em>, </td>
  1267. </tr>
  1268. <tr>
  1269. <td class="paramkey"></td>
  1270. <td></td>
  1271. <td class="paramtype">genType&#160;</td>
  1272. <td class="paramname"><em>x</em>&#160;</td>
  1273. </tr>
  1274. <tr>
  1275. <td></td>
  1276. <td>)</td>
  1277. <td></td><td></td>
  1278. </tr>
  1279. </table>
  1280. </div><div class="memdoc">
  1281. <p>Returns 0.0 if x &lt;= edge0 and 1.0 if x &gt;= edge1 and performs smooth Hermite interpolation between 0 and 1 when edge0 &lt; x &lt; edge1. </p>
  1282. <p>This is useful in cases where you would want a threshold function with a smooth transition. This is equivalent to: genType t; t = clamp ((x - edge0) / (edge1 - edge0), 0, 1); return t * t * (3 - 2 * t); Results are undefined if edge0 &gt;= edge1.</p>
  1283. <dl class="tparams"><dt>Template Parameters</dt><dd>
  1284. <table class="tparams">
  1285. <tr><td class="paramname">genType</td><td>Floating-point scalar or vector types.</td></tr>
  1286. </table>
  1287. </dd>
  1288. </dl>
  1289. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/smoothstep.xml">GLSL smoothstep man page</a> </dd>
  1290. <dd>
  1291. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  1292. </div>
  1293. </div>
  1294. <a id="ga015a1261ff23e12650211aa872863cce"></a>
  1295. <h2 class="memtitle"><span class="permalink"><a href="#ga015a1261ff23e12650211aa872863cce">&#9670;&nbsp;</a></span>step() <span class="overload">[1/3]</span></h2>
  1296. <div class="memitem">
  1297. <div class="memproto">
  1298. <table class="memname">
  1299. <tr>
  1300. <td class="memname">GLM_FUNC_DECL genType glm::step </td>
  1301. <td>(</td>
  1302. <td class="paramtype">genType&#160;</td>
  1303. <td class="paramname"><em>edge</em>, </td>
  1304. </tr>
  1305. <tr>
  1306. <td class="paramkey"></td>
  1307. <td></td>
  1308. <td class="paramtype">genType&#160;</td>
  1309. <td class="paramname"><em>x</em>&#160;</td>
  1310. </tr>
  1311. <tr>
  1312. <td></td>
  1313. <td>)</td>
  1314. <td></td><td></td>
  1315. </tr>
  1316. </table>
  1317. </div><div class="memdoc">
  1318. <p>Returns 0.0 if x &lt; edge, otherwise it returns 1.0 for each component of a genType. </p>
  1319. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/step.xml">GLSL step man page</a> </dd>
  1320. <dd>
  1321. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  1322. </div>
  1323. </div>
  1324. <a id="ga8f9a911a48ef244b51654eaefc81c551"></a>
  1325. <h2 class="memtitle"><span class="permalink"><a href="#ga8f9a911a48ef244b51654eaefc81c551">&#9670;&nbsp;</a></span>step() <span class="overload">[2/3]</span></h2>
  1326. <div class="memitem">
  1327. <div class="memproto">
  1328. <table class="memname">
  1329. <tr>
  1330. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::step </td>
  1331. <td>(</td>
  1332. <td class="paramtype">T&#160;</td>
  1333. <td class="paramname"><em>edge</em>, </td>
  1334. </tr>
  1335. <tr>
  1336. <td class="paramkey"></td>
  1337. <td></td>
  1338. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  1339. <td class="paramname"><em>x</em>&#160;</td>
  1340. </tr>
  1341. <tr>
  1342. <td></td>
  1343. <td>)</td>
  1344. <td></td><td></td>
  1345. </tr>
  1346. </table>
  1347. </div><div class="memdoc">
  1348. <p>Returns 0.0 if x &lt; edge, otherwise it returns 1.0. </p>
  1349. <dl class="tparams"><dt>Template Parameters</dt><dd>
  1350. <table class="tparams">
  1351. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  1352. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  1353. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  1354. </table>
  1355. </dd>
  1356. </dl>
  1357. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/step.xml">GLSL step man page</a> </dd>
  1358. <dd>
  1359. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  1360. </div>
  1361. </div>
  1362. <a id="gaf4a5fc81619c7d3e8b22f53d4a098c7f"></a>
  1363. <h2 class="memtitle"><span class="permalink"><a href="#gaf4a5fc81619c7d3e8b22f53d4a098c7f">&#9670;&nbsp;</a></span>step() <span class="overload">[3/3]</span></h2>
  1364. <div class="memitem">
  1365. <div class="memproto">
  1366. <table class="memname">
  1367. <tr>
  1368. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::step </td>
  1369. <td>(</td>
  1370. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  1371. <td class="paramname"><em>edge</em>, </td>
  1372. </tr>
  1373. <tr>
  1374. <td class="paramkey"></td>
  1375. <td></td>
  1376. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  1377. <td class="paramname"><em>x</em>&#160;</td>
  1378. </tr>
  1379. <tr>
  1380. <td></td>
  1381. <td>)</td>
  1382. <td></td><td></td>
  1383. </tr>
  1384. </table>
  1385. </div><div class="memdoc">
  1386. <p>Returns 0.0 if x &lt; edge, otherwise it returns 1.0. </p>
  1387. <dl class="tparams"><dt>Template Parameters</dt><dd>
  1388. <table class="tparams">
  1389. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  1390. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  1391. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  1392. </table>
  1393. </dd>
  1394. </dl>
  1395. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/step.xml">GLSL step man page</a> </dd>
  1396. <dd>
  1397. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  1398. </div>
  1399. </div>
  1400. <a id="gaf9375e3e06173271d49e6ffa3a334259"></a>
  1401. <h2 class="memtitle"><span class="permalink"><a href="#gaf9375e3e06173271d49e6ffa3a334259">&#9670;&nbsp;</a></span>trunc()</h2>
  1402. <div class="memitem">
  1403. <div class="memproto">
  1404. <table class="memname">
  1405. <tr>
  1406. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::trunc </td>
  1407. <td>(</td>
  1408. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  1409. <td class="paramname"><em>x</em></td><td>)</td>
  1410. <td></td>
  1411. </tr>
  1412. </table>
  1413. </div><div class="memdoc">
  1414. <p>Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolute value of x. </p>
  1415. <dl class="tparams"><dt>Template Parameters</dt><dd>
  1416. <table class="tparams">
  1417. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  1418. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  1419. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  1420. </table>
  1421. </dd>
  1422. </dl>
  1423. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/trunc.xml">GLSL trunc man page</a> </dd>
  1424. <dd>
  1425. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  1426. </div>
  1427. </div>
  1428. <a id="gab2bae0d15dcdca6093f88f76b3975d97"></a>
  1429. <h2 class="memtitle"><span class="permalink"><a href="#gab2bae0d15dcdca6093f88f76b3975d97">&#9670;&nbsp;</a></span>uintBitsToFloat() <span class="overload">[1/2]</span></h2>
  1430. <div class="memitem">
  1431. <div class="memproto">
  1432. <table class="memname">
  1433. <tr>
  1434. <td class="memname">GLM_FUNC_DECL float glm::uintBitsToFloat </td>
  1435. <td>(</td>
  1436. <td class="paramtype">uint const &amp;&#160;</td>
  1437. <td class="paramname"><em>v</em></td><td>)</td>
  1438. <td></td>
  1439. </tr>
  1440. </table>
  1441. </div><div class="memdoc">
  1442. <p>Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value. </p>
  1443. <p>If an inf or NaN is passed in, it will not signal, and the resulting floating point value is unspecified. Otherwise, the bit-level representation is preserved.</p>
  1444. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/uintBitsToFloat.xml">GLSL uintBitsToFloat man page</a> </dd>
  1445. <dd>
  1446. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  1447. </div>
  1448. </div>
  1449. <a id="ga97f46b5f7b42fe44482e13356eb394ae"></a>
  1450. <h2 class="memtitle"><span class="permalink"><a href="#ga97f46b5f7b42fe44482e13356eb394ae">&#9670;&nbsp;</a></span>uintBitsToFloat() <span class="overload">[2/2]</span></h2>
  1451. <div class="memitem">
  1452. <div class="memproto">
  1453. <table class="memname">
  1454. <tr>
  1455. <td class="memname">GLM_FUNC_DECL vec&lt;L, float, Q&gt; glm::uintBitsToFloat </td>
  1456. <td>(</td>
  1457. <td class="paramtype">vec&lt; L, uint, Q &gt; const &amp;&#160;</td>
  1458. <td class="paramname"><em>v</em></td><td>)</td>
  1459. <td></td>
  1460. </tr>
  1461. </table>
  1462. </div><div class="memdoc">
  1463. <p>Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value. </p>
  1464. <p>If an inf or NaN is passed in, it will not signal, and the resulting floating point value is unspecified. Otherwise, the bit-level representation is preserved.</p>
  1465. <dl class="tparams"><dt>Template Parameters</dt><dd>
  1466. <table class="tparams">
  1467. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  1468. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  1469. </table>
  1470. </dd>
  1471. </dl>
  1472. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/uintBitsToFloat.xml">GLSL uintBitsToFloat man page</a> </dd>
  1473. <dd>
  1474. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  1475. </div>
  1476. </div>
  1477. </div><!-- contents -->
  1478. <!-- start footer part -->
  1479. <hr class="footer"/><address class="footer"><small>
  1480. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  1481. <img class="footer" src="doxygen.png" alt="doxygen"/>
  1482. </a> 1.8.14
  1483. </small></address>
  1484. </body>
  1485. </html>