Platformer in OpenGL
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

832 строки
37 KiB

5 лет назад
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>0.9.9 API documenation: GLM_GTX_extented_min_max</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectlogo"><img alt="Logo" src="logo-mini.png"/></td>
  24. <td id="projectalign" style="padding-left: 0.5em;">
  25. <div id="projectname">0.9.9 API documenation
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.14 -->
  34. <script type="text/javascript">
  35. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. /* @license-end */
  38. </script>
  39. <script type="text/javascript" src="menudata.js"></script>
  40. <script type="text/javascript" src="menu.js"></script>
  41. <script type="text/javascript">
  42. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  43. $(function() {
  44. initMenu('',true,false,'search.php','Search');
  45. $(document).ready(function() { init_search(); });
  46. });
  47. /* @license-end */</script>
  48. <div id="main-nav"></div>
  49. </div><!-- top -->
  50. <!-- window showing the filter options -->
  51. <div id="MSearchSelectWindow"
  52. onmouseover="return searchBox.OnSearchSelectShow()"
  53. onmouseout="return searchBox.OnSearchSelectHide()"
  54. onkeydown="return searchBox.OnSearchSelectKey(event)">
  55. </div>
  56. <!-- iframe showing the search results (closed by default) -->
  57. <div id="MSearchResultsWindow">
  58. <iframe src="javascript:void(0)" frameborder="0"
  59. name="MSearchResults" id="MSearchResults">
  60. </iframe>
  61. </div>
  62. <div class="header">
  63. <div class="summary">
  64. <a href="#func-members">Functions</a> </div>
  65. <div class="headertitle">
  66. <div class="title">GLM_GTX_extented_min_max<div class="ingroups"><a class="el" href="a00705.html">Experimental extensions</a></div></div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <table class="memberdecls">
  70. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  71. Functions</h2></td></tr>
  72. <tr class="memitem:ga1e28539d3a46965ed9ef92ec7cb3b18a"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  73. <tr class="memitem:ga1e28539d3a46965ed9ef92ec7cb3b18a"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00738.html#ga1e28539d3a46965ed9ef92ec7cb3b18a">fclamp</a> (genType x, genType minVal, genType maxVal)</td></tr>
  74. <tr class="separator:ga1e28539d3a46965ed9ef92ec7cb3b18a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:ga60796d08903489ee185373593bc16b9d"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:ga60796d08903489ee185373593bc16b9d"><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="a00738.html#ga60796d08903489ee185373593bc16b9d">fclamp</a> (vec&lt; L, T, Q &gt; const &amp;x, T minVal, T maxVal)</td></tr>
  77. <tr class="separator:ga60796d08903489ee185373593bc16b9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga5c15fa4709763c269c86c0b8b3aa2297"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:ga5c15fa4709763c269c86c0b8b3aa2297"><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="a00738.html#ga5c15fa4709763c269c86c0b8b3aa2297">fclamp</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>
  80. <tr class="separator:ga5c15fa4709763c269c86c0b8b3aa2297"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:gae5792cb2b51190057e4aea027eb56f81"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  82. <tr class="memitem:gae5792cb2b51190057e4aea027eb56f81"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00738.html#gae5792cb2b51190057e4aea027eb56f81">fmax</a> (genType x, genType y)</td></tr>
  83. <tr class="separator:gae5792cb2b51190057e4aea027eb56f81"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:gaa3200559611ac5b9b9ae7283547916a7"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  85. <tr class="memitem:gaa3200559611ac5b9b9ae7283547916a7"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00738.html#gaa3200559611ac5b9b9ae7283547916a7">fmin</a> (genType x, genType y)</td></tr>
  86. <tr class="separator:gaa3200559611ac5b9b9ae7283547916a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:ga04991ccb9865c4c4e58488cfb209ce69"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
  88. <tr class="memitem:ga04991ccb9865c4c4e58488cfb209ce69"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00738.html#ga04991ccb9865c4c4e58488cfb209ce69">max</a> (T const &amp;x, T const &amp;y, T const &amp;z)</td></tr>
  89. <tr class="separator:ga04991ccb9865c4c4e58488cfb209ce69"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:gae1b7bbe5c91de4924835ea3e14530744"><td class="memTemplParams" colspan="2">template&lt;typename T , template&lt; typename &gt; class C&gt; </td></tr>
  91. <tr class="memitem:gae1b7bbe5c91de4924835ea3e14530744"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL C&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00738.html#gae1b7bbe5c91de4924835ea3e14530744">max</a> (C&lt; T &gt; const &amp;x, typename C&lt; T &gt;::T const &amp;y, typename C&lt; T &gt;::T const &amp;z)</td></tr>
  92. <tr class="separator:gae1b7bbe5c91de4924835ea3e14530744"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:gaf832e9d4ab4826b2dda2fda25935a3a4"><td class="memTemplParams" colspan="2">template&lt;typename T , template&lt; typename &gt; class C&gt; </td></tr>
  94. <tr class="memitem:gaf832e9d4ab4826b2dda2fda25935a3a4"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL C&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00738.html#gaf832e9d4ab4826b2dda2fda25935a3a4">max</a> (C&lt; T &gt; const &amp;x, C&lt; T &gt; const &amp;y, C&lt; T &gt; const &amp;z)</td></tr>
  95. <tr class="separator:gaf832e9d4ab4826b2dda2fda25935a3a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:ga78e04a0cef1c4863fcae1a2130500d87"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
  97. <tr class="memitem:ga78e04a0cef1c4863fcae1a2130500d87"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00738.html#ga78e04a0cef1c4863fcae1a2130500d87">max</a> (T const &amp;x, T const &amp;y, T const &amp;z, T const &amp;w)</td></tr>
  98. <tr class="separator:ga78e04a0cef1c4863fcae1a2130500d87"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:ga7cca8b53cfda402040494cdf40fbdf4a"><td class="memTemplParams" colspan="2">template&lt;typename T , template&lt; typename &gt; class C&gt; </td></tr>
  100. <tr class="memitem:ga7cca8b53cfda402040494cdf40fbdf4a"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL C&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00738.html#ga7cca8b53cfda402040494cdf40fbdf4a">max</a> (C&lt; T &gt; const &amp;x, typename C&lt; T &gt;::T const &amp;y, typename C&lt; T &gt;::T const &amp;z, typename C&lt; T &gt;::T const &amp;w)</td></tr>
  101. <tr class="separator:ga7cca8b53cfda402040494cdf40fbdf4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:gaacffbc466c2d08c140b181e7fd8a4858"><td class="memTemplParams" colspan="2">template&lt;typename T , template&lt; typename &gt; class C&gt; </td></tr>
  103. <tr class="memitem:gaacffbc466c2d08c140b181e7fd8a4858"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL C&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00738.html#gaacffbc466c2d08c140b181e7fd8a4858">max</a> (C&lt; T &gt; const &amp;x, C&lt; T &gt; const &amp;y, C&lt; T &gt; const &amp;z, C&lt; T &gt; const &amp;w)</td></tr>
  104. <tr class="separator:gaacffbc466c2d08c140b181e7fd8a4858"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:ga713d3f9b3e76312c0d314e0c8611a6a6"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
  106. <tr class="memitem:ga713d3f9b3e76312c0d314e0c8611a6a6"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00738.html#ga713d3f9b3e76312c0d314e0c8611a6a6">min</a> (T const &amp;x, T const &amp;y, T const &amp;z)</td></tr>
  107. <tr class="separator:ga713d3f9b3e76312c0d314e0c8611a6a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:ga74d1a96e7cdbac40f6d35142d3bcbbd4"><td class="memTemplParams" colspan="2">template&lt;typename T , template&lt; typename &gt; class C&gt; </td></tr>
  109. <tr class="memitem:ga74d1a96e7cdbac40f6d35142d3bcbbd4"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL C&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00738.html#ga74d1a96e7cdbac40f6d35142d3bcbbd4">min</a> (C&lt; T &gt; const &amp;x, typename C&lt; T &gt;::T const &amp;y, typename C&lt; T &gt;::T const &amp;z)</td></tr>
  110. <tr class="separator:ga74d1a96e7cdbac40f6d35142d3bcbbd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:ga42b5c3fc027fd3d9a50d2ccc9126d9f0"><td class="memTemplParams" colspan="2">template&lt;typename T , template&lt; typename &gt; class C&gt; </td></tr>
  112. <tr class="memitem:ga42b5c3fc027fd3d9a50d2ccc9126d9f0"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL C&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00738.html#ga42b5c3fc027fd3d9a50d2ccc9126d9f0">min</a> (C&lt; T &gt; const &amp;x, C&lt; T &gt; const &amp;y, C&lt; T &gt; const &amp;z)</td></tr>
  113. <tr class="separator:ga42b5c3fc027fd3d9a50d2ccc9126d9f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:ga95466987024d03039607f09e69813d69"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
  115. <tr class="memitem:ga95466987024d03039607f09e69813d69"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00738.html#ga95466987024d03039607f09e69813d69">min</a> (T const &amp;x, T const &amp;y, T const &amp;z, T const &amp;w)</td></tr>
  116. <tr class="separator:ga95466987024d03039607f09e69813d69"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:ga4fe35dd31dd0c45693c9b60b830b8d47"><td class="memTemplParams" colspan="2">template&lt;typename T , template&lt; typename &gt; class C&gt; </td></tr>
  118. <tr class="memitem:ga4fe35dd31dd0c45693c9b60b830b8d47"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL C&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00738.html#ga4fe35dd31dd0c45693c9b60b830b8d47">min</a> (C&lt; T &gt; const &amp;x, typename C&lt; T &gt;::T const &amp;y, typename C&lt; T &gt;::T const &amp;z, typename C&lt; T &gt;::T const &amp;w)</td></tr>
  119. <tr class="separator:ga4fe35dd31dd0c45693c9b60b830b8d47"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:ga7471ea4159eed8dd9ea4ac5d46c2fead"><td class="memTemplParams" colspan="2">template&lt;typename T , template&lt; typename &gt; class C&gt; </td></tr>
  121. <tr class="memitem:ga7471ea4159eed8dd9ea4ac5d46c2fead"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL C&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00738.html#ga7471ea4159eed8dd9ea4ac5d46c2fead">min</a> (C&lt; T &gt; const &amp;x, C&lt; T &gt; const &amp;y, C&lt; T &gt; const &amp;z, C&lt; T &gt; const &amp;w)</td></tr>
  122. <tr class="separator:ga7471ea4159eed8dd9ea4ac5d46c2fead"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. </table>
  124. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  125. <p>Include &lt;glm/gtx/extented_min_max.hpp&gt; to use the features of this extension. </p>
  126. <p>Min and max functions for 3 to 4 parameters. </p>
  127. <h2 class="groupheader">Function Documentation</h2>
  128. <a id="ga1e28539d3a46965ed9ef92ec7cb3b18a"></a>
  129. <h2 class="memtitle"><span class="permalink"><a href="#ga1e28539d3a46965ed9ef92ec7cb3b18a">&#9670;&nbsp;</a></span>fclamp() <span class="overload">[1/3]</span></h2>
  130. <div class="memitem">
  131. <div class="memproto">
  132. <table class="memname">
  133. <tr>
  134. <td class="memname">GLM_FUNC_DECL genType glm::fclamp </td>
  135. <td>(</td>
  136. <td class="paramtype">genType&#160;</td>
  137. <td class="paramname"><em>x</em>, </td>
  138. </tr>
  139. <tr>
  140. <td class="paramkey"></td>
  141. <td></td>
  142. <td class="paramtype">genType&#160;</td>
  143. <td class="paramname"><em>minVal</em>, </td>
  144. </tr>
  145. <tr>
  146. <td class="paramkey"></td>
  147. <td></td>
  148. <td class="paramtype">genType&#160;</td>
  149. <td class="paramname"><em>maxVal</em>&#160;</td>
  150. </tr>
  151. <tr>
  152. <td></td>
  153. <td>)</td>
  154. <td></td><td></td>
  155. </tr>
  156. </table>
  157. </div><div class="memdoc">
  158. <p>Returns min(max(x, minVal), maxVal) for each component in x. </p>
  159. <p>If one of the two arguments is NaN, the value of the other argument is returned.</p>
  160. <dl class="tparams"><dt>Template Parameters</dt><dd>
  161. <table class="tparams">
  162. <tr><td class="paramname">genType</td><td>Floating-point scalar or vector types.</td></tr>
  163. </table>
  164. </dd>
  165. </dl>
  166. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  167. </div>
  168. </div>
  169. <a id="ga60796d08903489ee185373593bc16b9d"></a>
  170. <h2 class="memtitle"><span class="permalink"><a href="#ga60796d08903489ee185373593bc16b9d">&#9670;&nbsp;</a></span>fclamp() <span class="overload">[2/3]</span></h2>
  171. <div class="memitem">
  172. <div class="memproto">
  173. <table class="memname">
  174. <tr>
  175. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::fclamp </td>
  176. <td>(</td>
  177. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  178. <td class="paramname"><em>x</em>, </td>
  179. </tr>
  180. <tr>
  181. <td class="paramkey"></td>
  182. <td></td>
  183. <td class="paramtype">T&#160;</td>
  184. <td class="paramname"><em>minVal</em>, </td>
  185. </tr>
  186. <tr>
  187. <td class="paramkey"></td>
  188. <td></td>
  189. <td class="paramtype">T&#160;</td>
  190. <td class="paramname"><em>maxVal</em>&#160;</td>
  191. </tr>
  192. <tr>
  193. <td></td>
  194. <td>)</td>
  195. <td></td><td></td>
  196. </tr>
  197. </table>
  198. </div><div class="memdoc">
  199. <p>Returns min(max(x, minVal), maxVal) for each component in x. </p>
  200. <p>If one of the two arguments is NaN, the value of the other argument is returned.</p>
  201. <dl class="tparams"><dt>Template Parameters</dt><dd>
  202. <table class="tparams">
  203. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  204. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  205. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  206. </table>
  207. </dd>
  208. </dl>
  209. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  210. </div>
  211. </div>
  212. <a id="ga5c15fa4709763c269c86c0b8b3aa2297"></a>
  213. <h2 class="memtitle"><span class="permalink"><a href="#ga5c15fa4709763c269c86c0b8b3aa2297">&#9670;&nbsp;</a></span>fclamp() <span class="overload">[3/3]</span></h2>
  214. <div class="memitem">
  215. <div class="memproto">
  216. <table class="memname">
  217. <tr>
  218. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::fclamp </td>
  219. <td>(</td>
  220. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  221. <td class="paramname"><em>x</em>, </td>
  222. </tr>
  223. <tr>
  224. <td class="paramkey"></td>
  225. <td></td>
  226. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  227. <td class="paramname"><em>minVal</em>, </td>
  228. </tr>
  229. <tr>
  230. <td class="paramkey"></td>
  231. <td></td>
  232. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  233. <td class="paramname"><em>maxVal</em>&#160;</td>
  234. </tr>
  235. <tr>
  236. <td></td>
  237. <td>)</td>
  238. <td></td><td></td>
  239. </tr>
  240. </table>
  241. </div><div class="memdoc">
  242. <p>Returns min(max(x, minVal), maxVal) for each component in x. </p>
  243. <p>If one of the two arguments is NaN, the value of the other argument is returned.</p>
  244. <dl class="tparams"><dt>Template Parameters</dt><dd>
  245. <table class="tparams">
  246. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  247. <tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
  248. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  249. </table>
  250. </dd>
  251. </dl>
  252. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  253. </div>
  254. </div>
  255. <a id="gae5792cb2b51190057e4aea027eb56f81"></a>
  256. <h2 class="memtitle"><span class="permalink"><a href="#gae5792cb2b51190057e4aea027eb56f81">&#9670;&nbsp;</a></span>fmax()</h2>
  257. <div class="memitem">
  258. <div class="memproto">
  259. <table class="memname">
  260. <tr>
  261. <td class="memname">GLM_FUNC_DECL genType glm::fmax </td>
  262. <td>(</td>
  263. <td class="paramtype">genType&#160;</td>
  264. <td class="paramname"><em>x</em>, </td>
  265. </tr>
  266. <tr>
  267. <td class="paramkey"></td>
  268. <td></td>
  269. <td class="paramtype">genType&#160;</td>
  270. <td class="paramname"><em>y</em>&#160;</td>
  271. </tr>
  272. <tr>
  273. <td></td>
  274. <td>)</td>
  275. <td></td><td></td>
  276. </tr>
  277. </table>
  278. </div><div class="memdoc">
  279. <p>Returns y if x &lt; y; otherwise, it returns x. </p>
  280. <p>If one of the two arguments is NaN, the value of the other argument is returned.</p>
  281. <dl class="tparams"><dt>Template Parameters</dt><dd>
  282. <table class="tparams">
  283. <tr><td class="paramname">genType</td><td>Floating-point; scalar or vector types.</td></tr>
  284. </table>
  285. </dd>
  286. </dl>
  287. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd>
  288. <dd>
  289. <a href="http://en.cppreference.com/w/cpp/numeric/math/fmax">std::fmax documentation</a> </dd></dl>
  290. </div>
  291. </div>
  292. <a id="gaa3200559611ac5b9b9ae7283547916a7"></a>
  293. <h2 class="memtitle"><span class="permalink"><a href="#gaa3200559611ac5b9b9ae7283547916a7">&#9670;&nbsp;</a></span>fmin()</h2>
  294. <div class="memitem">
  295. <div class="memproto">
  296. <table class="memname">
  297. <tr>
  298. <td class="memname">GLM_FUNC_DECL genType glm::fmin </td>
  299. <td>(</td>
  300. <td class="paramtype">genType&#160;</td>
  301. <td class="paramname"><em>x</em>, </td>
  302. </tr>
  303. <tr>
  304. <td class="paramkey"></td>
  305. <td></td>
  306. <td class="paramtype">genType&#160;</td>
  307. <td class="paramname"><em>y</em>&#160;</td>
  308. </tr>
  309. <tr>
  310. <td></td>
  311. <td>)</td>
  312. <td></td><td></td>
  313. </tr>
  314. </table>
  315. </div><div class="memdoc">
  316. <p>Returns y if y &lt; x; otherwise, it returns x. </p>
  317. <p>If one of the two arguments is NaN, the value of the other argument is returned.</p>
  318. <dl class="tparams"><dt>Template Parameters</dt><dd>
  319. <table class="tparams">
  320. <tr><td class="paramname">genType</td><td>Floating-point or integer; scalar or vector types.</td></tr>
  321. </table>
  322. </dd>
  323. </dl>
  324. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  325. </div>
  326. </div>
  327. <a id="ga04991ccb9865c4c4e58488cfb209ce69"></a>
  328. <h2 class="memtitle"><span class="permalink"><a href="#ga04991ccb9865c4c4e58488cfb209ce69">&#9670;&nbsp;</a></span>max() <span class="overload">[1/6]</span></h2>
  329. <div class="memitem">
  330. <div class="memproto">
  331. <table class="memname">
  332. <tr>
  333. <td class="memname">GLM_FUNC_DECL T glm::max </td>
  334. <td>(</td>
  335. <td class="paramtype">T const &amp;&#160;</td>
  336. <td class="paramname"><em>x</em>, </td>
  337. </tr>
  338. <tr>
  339. <td class="paramkey"></td>
  340. <td></td>
  341. <td class="paramtype">T const &amp;&#160;</td>
  342. <td class="paramname"><em>y</em>, </td>
  343. </tr>
  344. <tr>
  345. <td class="paramkey"></td>
  346. <td></td>
  347. <td class="paramtype">T const &amp;&#160;</td>
  348. <td class="paramname"><em>z</em>&#160;</td>
  349. </tr>
  350. <tr>
  351. <td></td>
  352. <td>)</td>
  353. <td></td><td></td>
  354. </tr>
  355. </table>
  356. </div><div class="memdoc">
  357. <p>Return the maximum component-wise values of 3 inputs. </p>
  358. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  359. </div>
  360. </div>
  361. <a id="gae1b7bbe5c91de4924835ea3e14530744"></a>
  362. <h2 class="memtitle"><span class="permalink"><a href="#gae1b7bbe5c91de4924835ea3e14530744">&#9670;&nbsp;</a></span>max() <span class="overload">[2/6]</span></h2>
  363. <div class="memitem">
  364. <div class="memproto">
  365. <table class="memname">
  366. <tr>
  367. <td class="memname">GLM_FUNC_DECL C&lt;T&gt; glm::max </td>
  368. <td>(</td>
  369. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  370. <td class="paramname"><em>x</em>, </td>
  371. </tr>
  372. <tr>
  373. <td class="paramkey"></td>
  374. <td></td>
  375. <td class="paramtype">typename C&lt; T &gt;::T const &amp;&#160;</td>
  376. <td class="paramname"><em>y</em>, </td>
  377. </tr>
  378. <tr>
  379. <td class="paramkey"></td>
  380. <td></td>
  381. <td class="paramtype">typename C&lt; T &gt;::T const &amp;&#160;</td>
  382. <td class="paramname"><em>z</em>&#160;</td>
  383. </tr>
  384. <tr>
  385. <td></td>
  386. <td>)</td>
  387. <td></td><td></td>
  388. </tr>
  389. </table>
  390. </div><div class="memdoc">
  391. <p>Return the maximum component-wise values of 3 inputs. </p>
  392. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  393. </div>
  394. </div>
  395. <a id="gaf832e9d4ab4826b2dda2fda25935a3a4"></a>
  396. <h2 class="memtitle"><span class="permalink"><a href="#gaf832e9d4ab4826b2dda2fda25935a3a4">&#9670;&nbsp;</a></span>max() <span class="overload">[3/6]</span></h2>
  397. <div class="memitem">
  398. <div class="memproto">
  399. <table class="memname">
  400. <tr>
  401. <td class="memname">GLM_FUNC_DECL C&lt;T&gt; glm::max </td>
  402. <td>(</td>
  403. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  404. <td class="paramname"><em>x</em>, </td>
  405. </tr>
  406. <tr>
  407. <td class="paramkey"></td>
  408. <td></td>
  409. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  410. <td class="paramname"><em>y</em>, </td>
  411. </tr>
  412. <tr>
  413. <td class="paramkey"></td>
  414. <td></td>
  415. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  416. <td class="paramname"><em>z</em>&#160;</td>
  417. </tr>
  418. <tr>
  419. <td></td>
  420. <td>)</td>
  421. <td></td><td></td>
  422. </tr>
  423. </table>
  424. </div><div class="memdoc">
  425. <p>Return the maximum component-wise values of 3 inputs. </p>
  426. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  427. </div>
  428. </div>
  429. <a id="ga78e04a0cef1c4863fcae1a2130500d87"></a>
  430. <h2 class="memtitle"><span class="permalink"><a href="#ga78e04a0cef1c4863fcae1a2130500d87">&#9670;&nbsp;</a></span>max() <span class="overload">[4/6]</span></h2>
  431. <div class="memitem">
  432. <div class="memproto">
  433. <table class="memname">
  434. <tr>
  435. <td class="memname">GLM_FUNC_DECL T glm::max </td>
  436. <td>(</td>
  437. <td class="paramtype">T const &amp;&#160;</td>
  438. <td class="paramname"><em>x</em>, </td>
  439. </tr>
  440. <tr>
  441. <td class="paramkey"></td>
  442. <td></td>
  443. <td class="paramtype">T const &amp;&#160;</td>
  444. <td class="paramname"><em>y</em>, </td>
  445. </tr>
  446. <tr>
  447. <td class="paramkey"></td>
  448. <td></td>
  449. <td class="paramtype">T const &amp;&#160;</td>
  450. <td class="paramname"><em>z</em>, </td>
  451. </tr>
  452. <tr>
  453. <td class="paramkey"></td>
  454. <td></td>
  455. <td class="paramtype">T const &amp;&#160;</td>
  456. <td class="paramname"><em>w</em>&#160;</td>
  457. </tr>
  458. <tr>
  459. <td></td>
  460. <td>)</td>
  461. <td></td><td></td>
  462. </tr>
  463. </table>
  464. </div><div class="memdoc">
  465. <p>Return the maximum component-wise values of 4 inputs. </p>
  466. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  467. </div>
  468. </div>
  469. <a id="ga7cca8b53cfda402040494cdf40fbdf4a"></a>
  470. <h2 class="memtitle"><span class="permalink"><a href="#ga7cca8b53cfda402040494cdf40fbdf4a">&#9670;&nbsp;</a></span>max() <span class="overload">[5/6]</span></h2>
  471. <div class="memitem">
  472. <div class="memproto">
  473. <table class="memname">
  474. <tr>
  475. <td class="memname">GLM_FUNC_DECL C&lt;T&gt; glm::max </td>
  476. <td>(</td>
  477. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  478. <td class="paramname"><em>x</em>, </td>
  479. </tr>
  480. <tr>
  481. <td class="paramkey"></td>
  482. <td></td>
  483. <td class="paramtype">typename C&lt; T &gt;::T const &amp;&#160;</td>
  484. <td class="paramname"><em>y</em>, </td>
  485. </tr>
  486. <tr>
  487. <td class="paramkey"></td>
  488. <td></td>
  489. <td class="paramtype">typename C&lt; T &gt;::T const &amp;&#160;</td>
  490. <td class="paramname"><em>z</em>, </td>
  491. </tr>
  492. <tr>
  493. <td class="paramkey"></td>
  494. <td></td>
  495. <td class="paramtype">typename C&lt; T &gt;::T const &amp;&#160;</td>
  496. <td class="paramname"><em>w</em>&#160;</td>
  497. </tr>
  498. <tr>
  499. <td></td>
  500. <td>)</td>
  501. <td></td><td></td>
  502. </tr>
  503. </table>
  504. </div><div class="memdoc">
  505. <p>Return the maximum component-wise values of 4 inputs. </p>
  506. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  507. </div>
  508. </div>
  509. <a id="gaacffbc466c2d08c140b181e7fd8a4858"></a>
  510. <h2 class="memtitle"><span class="permalink"><a href="#gaacffbc466c2d08c140b181e7fd8a4858">&#9670;&nbsp;</a></span>max() <span class="overload">[6/6]</span></h2>
  511. <div class="memitem">
  512. <div class="memproto">
  513. <table class="memname">
  514. <tr>
  515. <td class="memname">GLM_FUNC_DECL C&lt;T&gt; glm::max </td>
  516. <td>(</td>
  517. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  518. <td class="paramname"><em>x</em>, </td>
  519. </tr>
  520. <tr>
  521. <td class="paramkey"></td>
  522. <td></td>
  523. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  524. <td class="paramname"><em>y</em>, </td>
  525. </tr>
  526. <tr>
  527. <td class="paramkey"></td>
  528. <td></td>
  529. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  530. <td class="paramname"><em>z</em>, </td>
  531. </tr>
  532. <tr>
  533. <td class="paramkey"></td>
  534. <td></td>
  535. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  536. <td class="paramname"><em>w</em>&#160;</td>
  537. </tr>
  538. <tr>
  539. <td></td>
  540. <td>)</td>
  541. <td></td><td></td>
  542. </tr>
  543. </table>
  544. </div><div class="memdoc">
  545. <p>Return the maximum component-wise values of 4 inputs. </p>
  546. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  547. </div>
  548. </div>
  549. <a id="ga713d3f9b3e76312c0d314e0c8611a6a6"></a>
  550. <h2 class="memtitle"><span class="permalink"><a href="#ga713d3f9b3e76312c0d314e0c8611a6a6">&#9670;&nbsp;</a></span>min() <span class="overload">[1/6]</span></h2>
  551. <div class="memitem">
  552. <div class="memproto">
  553. <table class="memname">
  554. <tr>
  555. <td class="memname">GLM_FUNC_DECL T glm::min </td>
  556. <td>(</td>
  557. <td class="paramtype">T const &amp;&#160;</td>
  558. <td class="paramname"><em>x</em>, </td>
  559. </tr>
  560. <tr>
  561. <td class="paramkey"></td>
  562. <td></td>
  563. <td class="paramtype">T const &amp;&#160;</td>
  564. <td class="paramname"><em>y</em>, </td>
  565. </tr>
  566. <tr>
  567. <td class="paramkey"></td>
  568. <td></td>
  569. <td class="paramtype">T const &amp;&#160;</td>
  570. <td class="paramname"><em>z</em>&#160;</td>
  571. </tr>
  572. <tr>
  573. <td></td>
  574. <td>)</td>
  575. <td></td><td></td>
  576. </tr>
  577. </table>
  578. </div><div class="memdoc">
  579. <p>Return the minimum component-wise values of 3 inputs. </p>
  580. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  581. </div>
  582. </div>
  583. <a id="ga74d1a96e7cdbac40f6d35142d3bcbbd4"></a>
  584. <h2 class="memtitle"><span class="permalink"><a href="#ga74d1a96e7cdbac40f6d35142d3bcbbd4">&#9670;&nbsp;</a></span>min() <span class="overload">[2/6]</span></h2>
  585. <div class="memitem">
  586. <div class="memproto">
  587. <table class="memname">
  588. <tr>
  589. <td class="memname">GLM_FUNC_DECL C&lt;T&gt; glm::min </td>
  590. <td>(</td>
  591. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  592. <td class="paramname"><em>x</em>, </td>
  593. </tr>
  594. <tr>
  595. <td class="paramkey"></td>
  596. <td></td>
  597. <td class="paramtype">typename C&lt; T &gt;::T const &amp;&#160;</td>
  598. <td class="paramname"><em>y</em>, </td>
  599. </tr>
  600. <tr>
  601. <td class="paramkey"></td>
  602. <td></td>
  603. <td class="paramtype">typename C&lt; T &gt;::T const &amp;&#160;</td>
  604. <td class="paramname"><em>z</em>&#160;</td>
  605. </tr>
  606. <tr>
  607. <td></td>
  608. <td>)</td>
  609. <td></td><td></td>
  610. </tr>
  611. </table>
  612. </div><div class="memdoc">
  613. <p>Return the minimum component-wise values of 3 inputs. </p>
  614. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  615. </div>
  616. </div>
  617. <a id="ga42b5c3fc027fd3d9a50d2ccc9126d9f0"></a>
  618. <h2 class="memtitle"><span class="permalink"><a href="#ga42b5c3fc027fd3d9a50d2ccc9126d9f0">&#9670;&nbsp;</a></span>min() <span class="overload">[3/6]</span></h2>
  619. <div class="memitem">
  620. <div class="memproto">
  621. <table class="memname">
  622. <tr>
  623. <td class="memname">GLM_FUNC_DECL C&lt;T&gt; glm::min </td>
  624. <td>(</td>
  625. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  626. <td class="paramname"><em>x</em>, </td>
  627. </tr>
  628. <tr>
  629. <td class="paramkey"></td>
  630. <td></td>
  631. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  632. <td class="paramname"><em>y</em>, </td>
  633. </tr>
  634. <tr>
  635. <td class="paramkey"></td>
  636. <td></td>
  637. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  638. <td class="paramname"><em>z</em>&#160;</td>
  639. </tr>
  640. <tr>
  641. <td></td>
  642. <td>)</td>
  643. <td></td><td></td>
  644. </tr>
  645. </table>
  646. </div><div class="memdoc">
  647. <p>Return the minimum component-wise values of 3 inputs. </p>
  648. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  649. </div>
  650. </div>
  651. <a id="ga95466987024d03039607f09e69813d69"></a>
  652. <h2 class="memtitle"><span class="permalink"><a href="#ga95466987024d03039607f09e69813d69">&#9670;&nbsp;</a></span>min() <span class="overload">[4/6]</span></h2>
  653. <div class="memitem">
  654. <div class="memproto">
  655. <table class="memname">
  656. <tr>
  657. <td class="memname">GLM_FUNC_DECL T glm::min </td>
  658. <td>(</td>
  659. <td class="paramtype">T const &amp;&#160;</td>
  660. <td class="paramname"><em>x</em>, </td>
  661. </tr>
  662. <tr>
  663. <td class="paramkey"></td>
  664. <td></td>
  665. <td class="paramtype">T const &amp;&#160;</td>
  666. <td class="paramname"><em>y</em>, </td>
  667. </tr>
  668. <tr>
  669. <td class="paramkey"></td>
  670. <td></td>
  671. <td class="paramtype">T const &amp;&#160;</td>
  672. <td class="paramname"><em>z</em>, </td>
  673. </tr>
  674. <tr>
  675. <td class="paramkey"></td>
  676. <td></td>
  677. <td class="paramtype">T const &amp;&#160;</td>
  678. <td class="paramname"><em>w</em>&#160;</td>
  679. </tr>
  680. <tr>
  681. <td></td>
  682. <td>)</td>
  683. <td></td><td></td>
  684. </tr>
  685. </table>
  686. </div><div class="memdoc">
  687. <p>Return the minimum component-wise values of 4 inputs. </p>
  688. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  689. </div>
  690. </div>
  691. <a id="ga4fe35dd31dd0c45693c9b60b830b8d47"></a>
  692. <h2 class="memtitle"><span class="permalink"><a href="#ga4fe35dd31dd0c45693c9b60b830b8d47">&#9670;&nbsp;</a></span>min() <span class="overload">[5/6]</span></h2>
  693. <div class="memitem">
  694. <div class="memproto">
  695. <table class="memname">
  696. <tr>
  697. <td class="memname">GLM_FUNC_DECL C&lt;T&gt; glm::min </td>
  698. <td>(</td>
  699. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  700. <td class="paramname"><em>x</em>, </td>
  701. </tr>
  702. <tr>
  703. <td class="paramkey"></td>
  704. <td></td>
  705. <td class="paramtype">typename C&lt; T &gt;::T const &amp;&#160;</td>
  706. <td class="paramname"><em>y</em>, </td>
  707. </tr>
  708. <tr>
  709. <td class="paramkey"></td>
  710. <td></td>
  711. <td class="paramtype">typename C&lt; T &gt;::T const &amp;&#160;</td>
  712. <td class="paramname"><em>z</em>, </td>
  713. </tr>
  714. <tr>
  715. <td class="paramkey"></td>
  716. <td></td>
  717. <td class="paramtype">typename C&lt; T &gt;::T const &amp;&#160;</td>
  718. <td class="paramname"><em>w</em>&#160;</td>
  719. </tr>
  720. <tr>
  721. <td></td>
  722. <td>)</td>
  723. <td></td><td></td>
  724. </tr>
  725. </table>
  726. </div><div class="memdoc">
  727. <p>Return the minimum component-wise values of 4 inputs. </p>
  728. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  729. </div>
  730. </div>
  731. <a id="ga7471ea4159eed8dd9ea4ac5d46c2fead"></a>
  732. <h2 class="memtitle"><span class="permalink"><a href="#ga7471ea4159eed8dd9ea4ac5d46c2fead">&#9670;&nbsp;</a></span>min() <span class="overload">[6/6]</span></h2>
  733. <div class="memitem">
  734. <div class="memproto">
  735. <table class="memname">
  736. <tr>
  737. <td class="memname">GLM_FUNC_DECL C&lt;T&gt; glm::min </td>
  738. <td>(</td>
  739. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  740. <td class="paramname"><em>x</em>, </td>
  741. </tr>
  742. <tr>
  743. <td class="paramkey"></td>
  744. <td></td>
  745. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  746. <td class="paramname"><em>y</em>, </td>
  747. </tr>
  748. <tr>
  749. <td class="paramkey"></td>
  750. <td></td>
  751. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  752. <td class="paramname"><em>z</em>, </td>
  753. </tr>
  754. <tr>
  755. <td class="paramkey"></td>
  756. <td></td>
  757. <td class="paramtype">C&lt; T &gt; const &amp;&#160;</td>
  758. <td class="paramname"><em>w</em>&#160;</td>
  759. </tr>
  760. <tr>
  761. <td></td>
  762. <td>)</td>
  763. <td></td><td></td>
  764. </tr>
  765. </table>
  766. </div><div class="memdoc">
  767. <p>Return the minimum component-wise values of 4 inputs. </p>
  768. <dl class="section see"><dt>See also</dt><dd>gtx_extented_min_max </dd></dl>
  769. </div>
  770. </div>
  771. </div><!-- contents -->
  772. <!-- start footer part -->
  773. <hr class="footer"/><address class="footer"><small>
  774. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  775. <img class="footer" src="doxygen.png" alt="doxygen"/>
  776. </a> 1.8.14
  777. </small></address>
  778. </body>
  779. </html>