mirror of
https://github.com/g-truc/glm.git
synced 2024-11-30 03:44:38 +00:00
277 lines
41 KiB
HTML
277 lines
41 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.10"/>
|
|
<title>0.9.9 API documenation: func_common.hpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">0.9.9 API documenation
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.10 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_934f46a345653ef2b3014a1b37a162c1.html">G:</a></li><li class="navelem"><a class="el" href="dir_98f7f9d41f9d3029bd68cf237526a774.html">Source</a></li><li class="navelem"><a class="el" href="dir_9344afb825aed5e2f5be1d2015dde43c.html">G-Truc</a></li><li class="navelem"><a class="el" href="dir_45973f864e07b2505003ae343b7c8af7.html">glm</a></li><li class="navelem"><a class="el" href="dir_304be5dfae1339a7705426c0b536faf2.html">glm</a></li><li class="navelem"><a class="el" href="dir_da256b9dd32ba43e2eaa8a2832c37f1b.html">detail</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">func_common.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="a00032.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="a00102.html">setup.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include "<a class="code" href="a00090.html">qualifier.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "<a class="code" href="a00114.html">type_int.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "<a class="code" href="a00002.html">_fixes.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="keyword">namespace </span><a class="code" href="a00143.html">glm</a></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {</div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keyword">template</span><<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  GLM_FUNC_DECL genType <a class="code" href="a00148.html#gaa62178552f8850f2dc8c779978ed3ea8">abs</a>(genType x);</div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#gaa62178552f8850f2dc8c779978ed3ea8">abs</a>(vec<L, T, P> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#ga62933815c9d7ea5507441856fa802c94">sign</a>(vec<L, T, P> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#gab6f24b0f819381899f58803f3b005bf1">floor</a>(vec<L, T, P> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#ga565dd97ec9a1b00b6ba357b99720dd68">trunc</a>(vec<L, T, P> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#ga9f5e4c6153ac586e7cb457d905b0d08c">round</a>(vec<L, T, P> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#ga824e87ff6060dc06d9cf58d84ecd1187">roundEven</a>(vec<L, T, P> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#ga11903ad28d1bcec0df713b4c3004ce2b">ceil</a>(vec<L, T, P> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keyword">template</span><<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  GLM_FUNC_DECL genType <a class="code" href="a00148.html#gae11058a6237b65256d23ea206ea47ca1">fract</a>(genType x);</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#gae11058a6237b65256d23ea206ea47ca1">fract</a>(vec<L, T, P> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keyword">template</span><<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  GLM_FUNC_DECL genType <a class="code" href="a00148.html#gab570443c91443542da1a7acd05b8b32b">mod</a>(genType x, genType y);</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#gab570443c91443542da1a7acd05b8b32b">mod</a>(vec<L, T, P> <span class="keyword">const</span>& x, T y);</div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#gab570443c91443542da1a7acd05b8b32b">mod</a>(vec<L, T, P> <span class="keyword">const</span>& x, vec<L, T, P> <span class="keyword">const</span>& y);</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keyword">template</span><<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  GLM_FUNC_DECL genType <a class="code" href="a00148.html#ga85e33f139b8db1b39b590a5713b9e679">modf</a>(genType x, genType& i);</div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keyword">template</span><<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  GLM_FUNC_DECL genType <a class="code" href="a00148.html#ga0b96592c4a34c3f83701b96321c2eba0">min</a>(genType x, genType y);</div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> </div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#ga0b96592c4a34c3f83701b96321c2eba0">min</a>(vec<L, T, P> <span class="keyword">const</span>& x, T y);</div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#ga0b96592c4a34c3f83701b96321c2eba0">min</a>(vec<L, T, P> <span class="keyword">const</span>& x, vec<L, T, P> <span class="keyword">const</span>& y);</div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> </div>
|
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keyword">template</span><<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  GLM_FUNC_DECL genType <a class="code" href="a00148.html#gaca193a66794114f8a6c077bf0aff8f71">max</a>(genType x, genType y);</div>
|
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> </div>
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#gaca193a66794114f8a6c077bf0aff8f71">max</a>(vec<L, T, P> <span class="keyword">const</span>& x, T y);</div>
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> </div>
|
|
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#gaca193a66794114f8a6c077bf0aff8f71">max</a>(vec<L, T, P> <span class="keyword">const</span>& x, vec<L, T, P> <span class="keyword">const</span>& y);</div>
|
|
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> </div>
|
|
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keyword">template</span><<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  GLM_FUNC_DECL genType <a class="code" href="a00148.html#gaeebf946ec0cc5ef78a0eefb8ff4717e2">clamp</a>(genType x, genType minVal, genType maxVal);</div>
|
|
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> </div>
|
|
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#gaeebf946ec0cc5ef78a0eefb8ff4717e2">clamp</a>(vec<L, T, P> <span class="keyword">const</span> & x, T minVal, T maxVal);</div>
|
|
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> </div>
|
|
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#gaeebf946ec0cc5ef78a0eefb8ff4717e2">clamp</a>(vec<L, T, P> <span class="keyword">const</span>& x, vec<L, T, P> <span class="keyword">const</span>& minVal, vec<L, T, P> <span class="keyword">const</span>& maxVal);</div>
|
|
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> </div>
|
|
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <span class="keyword">template</span><<span class="keyword">typename</span> genTypeT, <span class="keyword">typename</span> genTypeU></div>
|
|
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  GLM_FUNC_DECL genTypeT <a class="code" href="a00148.html#ga8e93f374aae27d1a88b921860351f8d4">mix</a>(genTypeT x, genTypeT y, genTypeU a);</div>
|
|
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span> </div>
|
|
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, <span class="keyword">typename</span> U, qualifier P></div>
|
|
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#ga8e93f374aae27d1a88b921860351f8d4">mix</a>(vec<L, T, P> <span class="keyword">const</span>& x, vec<L, T, P> <span class="keyword">const</span>& y, vec<L, U, P> <span class="keyword">const</span>& a);</div>
|
|
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> </div>
|
|
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, <span class="keyword">typename</span> U, qualifier P></div>
|
|
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#ga8e93f374aae27d1a88b921860351f8d4">mix</a>(vec<L, T, P> <span class="keyword">const</span>& x, vec<L, T, P> <span class="keyword">const</span>& y, U a);</div>
|
|
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span> </div>
|
|
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <span class="keyword">template</span><<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  GLM_FUNC_DECL genType <a class="code" href="a00148.html#ga0ae969e5f5124844affd1dc58b1dee10">step</a>(genType edge, genType x);</div>
|
|
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> </div>
|
|
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#ga0ae969e5f5124844affd1dc58b1dee10">step</a>(T edge, vec<L, T, P> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span> </div>
|
|
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#ga0ae969e5f5124844affd1dc58b1dee10">step</a>(vec<L, T, P> <span class="keyword">const</span>& edge, vec<L, T, P> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span> </div>
|
|
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <span class="keyword">template</span><<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  GLM_FUNC_DECL genType <a class="code" href="a00148.html#ga562edf7eca082cc5b7a0aaf180436daf">smoothstep</a>(genType edge0, genType edge1, genType x);</div>
|
|
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span> </div>
|
|
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#ga562edf7eca082cc5b7a0aaf180436daf">smoothstep</a>(T edge0, T edge1, vec<L, T, P> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span> </div>
|
|
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  GLM_FUNC_DECL vec<L, T, P> <a class="code" href="a00148.html#ga562edf7eca082cc5b7a0aaf180436daf">smoothstep</a>(vec<L, T, P> <span class="keyword">const</span>& edge0, vec<L, T, P> <span class="keyword">const</span>& edge1, vec<L, T, P> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span> </div>
|
|
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  GLM_FUNC_DECL vec<L, bool, P> <a class="code" href="a00148.html#gad030d597b01970e80d11301d5dd2f905">isnan</a>(vec<L, T, P> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span> </div>
|
|
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier P></div>
|
|
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  GLM_FUNC_DECL vec<L, bool, P> <a class="code" href="a00148.html#ga0fb03e57d4cf522f0f1ce77f89b9c30b">isinf</a>(vec<L, T, P> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span> </div>
|
|
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  GLM_FUNC_DECL <span class="keywordtype">int</span> <a class="code" href="a00148.html#ga8c8c06c97f5318f971db3172b71af54c">floatBitsToInt</a>(<span class="keywordtype">float</span> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span> </div>
|
|
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  <span class="keyword">template</span><length_t L, qualifier P></div>
|
|
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  GLM_FUNC_DECL vec<L, int, P> <a class="code" href="a00148.html#ga8c8c06c97f5318f971db3172b71af54c">floatBitsToInt</a>(vec<L, float, P> <span class="keyword">const</span>& v);</div>
|
|
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span> </div>
|
|
<div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  GLM_FUNC_DECL <a class="code" href="a00160.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> <a class="code" href="a00148.html#ga0967707ab72af2ffafc86369df61f095">floatBitsToUint</a>(<span class="keywordtype">float</span> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span> </div>
|
|
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  <span class="keyword">template</span><length_t L, qualifier P></div>
|
|
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  GLM_FUNC_DECL vec<L, uint, P> <a class="code" href="a00148.html#ga0967707ab72af2ffafc86369df61f095">floatBitsToUint</a>(vec<L, float, P> <span class="keyword">const</span>& v);</div>
|
|
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span> </div>
|
|
<div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  GLM_FUNC_DECL <span class="keywordtype">float</span> <a class="code" href="a00148.html#ga9139db8c4b8c7ea8c0b3a503e21f63b9">intBitsToFloat</a>(<span class="keywordtype">int</span> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00465"></a><span class="lineno"> 465</span> </div>
|
|
<div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  <span class="keyword">template</span><length_t L, qualifier P></div>
|
|
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  GLM_FUNC_DECL vec<L, float, P> <a class="code" href="a00148.html#ga9139db8c4b8c7ea8c0b3a503e21f63b9">intBitsToFloat</a>(vec<L, int, P> <span class="keyword">const</span>& v);</div>
|
|
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span> </div>
|
|
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  GLM_FUNC_DECL <span class="keywordtype">float</span> <a class="code" href="a00148.html#ga24443458c4317244360d7c87e38ff744">uintBitsToFloat</a>(<a class="code" href="a00160.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span> </div>
|
|
<div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  <span class="keyword">template</span><length_t L, qualifier P></div>
|
|
<div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  GLM_FUNC_DECL vec<L, float, P> <a class="code" href="a00148.html#ga24443458c4317244360d7c87e38ff744">uintBitsToFloat</a>(vec<L, uint, P> <span class="keyword">const</span>& v);</div>
|
|
<div class="line"><a name="l00503"></a><span class="lineno"> 503</span> </div>
|
|
<div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  <span class="keyword">template</span><<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  GLM_FUNC_DECL genType <a class="code" href="a00148.html#gad0f444d4b81cc53c3b6edf5aa25078c2">fma</a>(genType <span class="keyword">const</span>& a, genType <span class="keyword">const</span>& b, genType <span class="keyword">const</span>& c);</div>
|
|
<div class="line"><a name="l00512"></a><span class="lineno"> 512</span> </div>
|
|
<div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  <span class="keyword">template</span><<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genIType></div>
|
|
<div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  GLM_FUNC_DECL genType <a class="code" href="a00148.html#ga20620e83544d1a988857a3bc4ebe0e1d">frexp</a>(genType <span class="keyword">const</span>& x, genIType& <a class="code" href="a00149.html#ga468741ae290e63c76c6cd66021f0aed4">exp</a>);</div>
|
|
<div class="line"><a name="l00529"></a><span class="lineno"> 529</span> </div>
|
|
<div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  <span class="keyword">template</span><<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genIType></div>
|
|
<div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  GLM_FUNC_DECL genType <a class="code" href="a00148.html#ga52e319d7289b849ec92055abd4830533">ldexp</a>(genType <span class="keyword">const</span>& x, genIType <span class="keyword">const</span>& <a class="code" href="a00149.html#ga468741ae290e63c76c6cd66021f0aed4">exp</a>);</div>
|
|
<div class="line"><a name="l00543"></a><span class="lineno"> 543</span> </div>
|
|
<div class="line"><a name="l00545"></a><span class="lineno"> 545</span> }<span class="comment">//namespace glm</span></div>
|
|
<div class="line"><a name="l00546"></a><span class="lineno"> 546</span> </div>
|
|
<div class="line"><a name="l00547"></a><span class="lineno"> 547</span> <span class="preprocessor">#include "func_common.inl"</span></div>
|
|
<div class="line"><a name="l00548"></a><span class="lineno"> 548</span> </div>
|
|
<div class="ttc" id="a00148_html_gaa62178552f8850f2dc8c779978ed3ea8"><div class="ttname"><a href="a00148.html#gaa62178552f8850f2dc8c779978ed3ea8">glm::abs</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, P > abs(vec< L, T, P > const &x)</div><div class="ttdoc">Returns x if x >= 0; otherwise, it returns -x. </div></div>
|
|
<div class="ttc" id="a00149_html_ga468741ae290e63c76c6cd66021f0aed4"><div class="ttname"><a href="a00149.html#ga468741ae290e63c76c6cd66021f0aed4">glm::exp</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, P > exp(vec< L, T, P > const &v)</div><div class="ttdoc">Returns the natural exponentiation of x, i.e., e^x. </div></div>
|
|
<div class="ttc" id="a00148_html_ga9139db8c4b8c7ea8c0b3a503e21f63b9"><div class="ttname"><a href="a00148.html#ga9139db8c4b8c7ea8c0b3a503e21f63b9">glm::intBitsToFloat</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, float, P > intBitsToFloat(vec< L, int, P > const &v)</div><div class="ttdoc">Returns a floating-point value corresponding to a signed integer encoding of a floating-point value...</div></div>
|
|
<div class="ttc" id="a00148_html_gae11058a6237b65256d23ea206ea47ca1"><div class="ttname"><a href="a00148.html#gae11058a6237b65256d23ea206ea47ca1">glm::fract</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, P > fract(vec< L, T, P > const &x)</div><div class="ttdoc">Return x - floor(x). </div></div>
|
|
<div class="ttc" id="a00148_html_ga52e319d7289b849ec92055abd4830533"><div class="ttname"><a href="a00148.html#ga52e319d7289b849ec92055abd4830533">glm::ldexp</a></div><div class="ttdeci">GLM_FUNC_DECL genType ldexp(genType const &x, genIType const &exp)</div><div class="ttdoc">Builds a floating-point number from x and the corresponding integral exponent of two in exp...</div></div>
|
|
<div class="ttc" id="a00148_html_ga562edf7eca082cc5b7a0aaf180436daf"><div class="ttname"><a href="a00148.html#ga562edf7eca082cc5b7a0aaf180436daf">glm::smoothstep</a></div><div class="ttdeci">GLM_FUNC_DECL genType smoothstep(genType edge0, genType edge1, genType x)</div><div class="ttdoc">Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 a...</div></div>
|
|
<div class="ttc" id="a00148_html_gab570443c91443542da1a7acd05b8b32b"><div class="ttname"><a href="a00148.html#gab570443c91443542da1a7acd05b8b32b">glm::mod</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, P > mod(vec< L, T, P > const &x, vec< L, T, P > const &y)</div><div class="ttdoc">Modulus. </div></div>
|
|
<div class="ttc" id="a00148_html_ga8e93f374aae27d1a88b921860351f8d4"><div class="ttname"><a href="a00148.html#ga8e93f374aae27d1a88b921860351f8d4">glm::mix</a></div><div class="ttdeci">GLM_FUNC_DECL genTypeT mix(genTypeT x, genTypeT y, genTypeU a)</div><div class="ttdoc">If genTypeU is a floating scalar or vector: Returns x * (1.0 - a) + y * a, i.e., the linear blend of ...</div></div>
|
|
<div class="ttc" id="a00148_html_gaeebf946ec0cc5ef78a0eefb8ff4717e2"><div class="ttname"><a href="a00148.html#gaeebf946ec0cc5ef78a0eefb8ff4717e2">glm::clamp</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, P > clamp(vec< L, T, P > const &x, vec< L, T, P > const &minVal, vec< L, T, P > const &maxVal)</div><div class="ttdoc">Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal an...</div></div>
|
|
<div class="ttc" id="a00143_html"><div class="ttname"><a href="a00143.html">glm</a></div><div class="ttdef"><b>Definition:</b> <a href="a00003_source.html#l00011">_noise.hpp:11</a></div></div>
|
|
<div class="ttc" id="a00148_html_ga9f5e4c6153ac586e7cb457d905b0d08c"><div class="ttname"><a href="a00148.html#ga9f5e4c6153ac586e7cb457d905b0d08c">glm::round</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, P > round(vec< L, T, P > const &x)</div><div class="ttdoc">Returns a value equal to the nearest integer to x. </div></div>
|
|
<div class="ttc" id="a00148_html_ga85e33f139b8db1b39b590a5713b9e679"><div class="ttname"><a href="a00148.html#ga85e33f139b8db1b39b590a5713b9e679">glm::modf</a></div><div class="ttdeci">GLM_FUNC_DECL genType modf(genType x, genType &i)</div><div class="ttdoc">Returns the fractional part of x and sets i to the integer part (as a whole number floating point val...</div></div>
|
|
<div class="ttc" id="a00148_html_gad030d597b01970e80d11301d5dd2f905"><div class="ttname"><a href="a00148.html#gad030d597b01970e80d11301d5dd2f905">glm::isnan</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, bool, P > isnan(vec< L, T, P > const &x)</div><div class="ttdoc">Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of...</div></div>
|
|
<div class="ttc" id="a00090_html"><div class="ttname"><a href="a00090.html">qualifier.hpp</a></div><div class="ttdoc">GLM Core </div></div>
|
|
<div class="ttc" id="a00114_html"><div class="ttname"><a href="a00114.html">type_int.hpp</a></div><div class="ttdoc">GLM Core </div></div>
|
|
<div class="ttc" id="a00148_html_ga0b96592c4a34c3f83701b96321c2eba0"><div class="ttname"><a href="a00148.html#ga0b96592c4a34c3f83701b96321c2eba0">glm::min</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, P > min(vec< L, T, P > const &x, vec< L, T, P > const &y)</div><div class="ttdoc">Returns y if y < x; otherwise, it returns x. </div></div>
|
|
<div class="ttc" id="a00148_html_ga62933815c9d7ea5507441856fa802c94"><div class="ttname"><a href="a00148.html#ga62933815c9d7ea5507441856fa802c94">glm::sign</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, P > sign(vec< L, T, P > const &x)</div><div class="ttdoc">Returns 1.0 if x > 0, 0.0 if x == 0, or -1.0 if x < 0. </div></div>
|
|
<div class="ttc" id="a00148_html_ga11903ad28d1bcec0df713b4c3004ce2b"><div class="ttname"><a href="a00148.html#ga11903ad28d1bcec0df713b4c3004ce2b">glm::ceil</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, P > ceil(vec< L, T, P > const &x)</div><div class="ttdoc">Returns a value equal to the nearest integer that is greater than or equal to x. </div></div>
|
|
<div class="ttc" id="a00148_html_ga565dd97ec9a1b00b6ba357b99720dd68"><div class="ttname"><a href="a00148.html#ga565dd97ec9a1b00b6ba357b99720dd68">glm::trunc</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, P > trunc(vec< L, T, P > const &x)</div><div class="ttdoc">Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolut...</div></div>
|
|
<div class="ttc" id="a00148_html_gaca193a66794114f8a6c077bf0aff8f71"><div class="ttname"><a href="a00148.html#gaca193a66794114f8a6c077bf0aff8f71">glm::max</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, P > max(vec< L, T, P > const &x, vec< L, T, P > const &y)</div><div class="ttdoc">Returns y if x < y; otherwise, it returns x. </div></div>
|
|
<div class="ttc" id="a00148_html_ga20620e83544d1a988857a3bc4ebe0e1d"><div class="ttname"><a href="a00148.html#ga20620e83544d1a988857a3bc4ebe0e1d">glm::frexp</a></div><div class="ttdeci">GLM_FUNC_DECL genType frexp(genType const &x, genIType &exp)</div><div class="ttdoc">Splits x into a floating-point significand in the range [0.5, 1.0) and an integral exponent of two...</div></div>
|
|
<div class="ttc" id="a00148_html_gab6f24b0f819381899f58803f3b005bf1"><div class="ttname"><a href="a00148.html#gab6f24b0f819381899f58803f3b005bf1">glm::floor</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, P > floor(vec< L, T, P > const &x)</div><div class="ttdoc">Returns a value equal to the nearest integer that is less then or equal to x. </div></div>
|
|
<div class="ttc" id="a00148_html_ga0ae969e5f5124844affd1dc58b1dee10"><div class="ttname"><a href="a00148.html#ga0ae969e5f5124844affd1dc58b1dee10">glm::step</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, P > step(vec< L, T, P > const &edge, vec< L, T, P > const &x)</div><div class="ttdoc">Returns 0.0 if x < edge, otherwise it returns 1.0. </div></div>
|
|
<div class="ttc" id="a00148_html_ga0967707ab72af2ffafc86369df61f095"><div class="ttname"><a href="a00148.html#ga0967707ab72af2ffafc86369df61f095">glm::floatBitsToUint</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, uint, P > floatBitsToUint(vec< L, float, P > const &v)</div><div class="ttdoc">Returns a unsigned integer value representing the encoding of a floating-point value. </div></div>
|
|
<div class="ttc" id="a00148_html_ga824e87ff6060dc06d9cf58d84ecd1187"><div class="ttname"><a href="a00148.html#ga824e87ff6060dc06d9cf58d84ecd1187">glm::roundEven</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, P > roundEven(vec< L, T, P > const &x)</div><div class="ttdoc">Returns a value equal to the nearest integer to x. </div></div>
|
|
<div class="ttc" id="a00148_html_gad0f444d4b81cc53c3b6edf5aa25078c2"><div class="ttname"><a href="a00148.html#gad0f444d4b81cc53c3b6edf5aa25078c2">glm::fma</a></div><div class="ttdeci">GLM_FUNC_DECL genType fma(genType const &a, genType const &b, genType const &c)</div><div class="ttdoc">Computes and returns a * b + c. </div></div>
|
|
<div class="ttc" id="a00148_html_ga8c8c06c97f5318f971db3172b71af54c"><div class="ttname"><a href="a00148.html#ga8c8c06c97f5318f971db3172b71af54c">glm::floatBitsToInt</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, int, P > floatBitsToInt(vec< L, float, P > const &v)</div><div class="ttdoc">Returns a signed integer value representing the encoding of a floating-point value. </div></div>
|
|
<div class="ttc" id="a00148_html_ga0fb03e57d4cf522f0f1ce77f89b9c30b"><div class="ttname"><a href="a00148.html#ga0fb03e57d4cf522f0f1ce77f89b9c30b">glm::isinf</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, bool, P > isinf(vec< L, T, P > const &x)</div><div class="ttdoc">Returns true if x holds a positive infinity or negative infinity representation in the underlying imp...</div></div>
|
|
<div class="ttc" id="a00148_html_ga24443458c4317244360d7c87e38ff744"><div class="ttname"><a href="a00148.html#ga24443458c4317244360d7c87e38ff744">glm::uintBitsToFloat</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, float, P > uintBitsToFloat(vec< L, uint, P > const &v)</div><div class="ttdoc">Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value...</div></div>
|
|
<div class="ttc" id="a00160_html_ga91ad9478d81a7aaf2593e8d9c3d06a14"><div class="ttname"><a href="a00160.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">glm::uint</a></div><div class="ttdeci">unsigned int uint</div><div class="ttdoc">Unsigned integer type. </div><div class="ttdef"><b>Definition:</b> <a href="a00114_source.html#l00288">type_int.hpp:288</a></div></div>
|
|
<div class="ttc" id="a00002_html"><div class="ttname"><a href="a00002.html">_fixes.hpp</a></div><div class="ttdoc">GLM Core </div></div>
|
|
<div class="ttc" id="a00102_html"><div class="ttname"><a href="a00102.html">setup.hpp</a></div><div class="ttdoc">GLM Core </div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.10
|
|
</small></address>
|
|
</body>
|
|
</html>
|