glm/doc/api/a00032_source.html
2014-01-11 23:35:39 +01:00

241 lines
38 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.5"/>
<title>GLM: 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="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 style="padding-left: 0.5em;">
<div id="projectname">GLM
&#160;<span id="projectnumber">0.9.5</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_8ceffd4ee35c3518d4e8bdc7e638efe8.html">Users</a></li><li class="navelem"><a class="el" href="dir_968fb7988749a6351e7b3d0c1783dec4.html">Groove</a></li><li class="navelem"><a class="el" href="dir_6e418c18ca640a0404613de005739e2e.html">Documents</a></li><li class="navelem"><a class="el" href="dir_e3ecd7863bd215c92a17f47e2ae3be43.html">GitHub</a></li><li class="navelem"><a class="el" href="dir_edf753475b928be648c1cf1c6443cf63.html">glm</a></li><li class="navelem"><a class="el" href="dir_e50778361fd4ab4de52181ed9eb2b726.html">glm</a></li><li class="navelem"><a class="el" href="dir_4d1ca7e3aefdd5b86b5dba8da1c3d503.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">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor">#ifndef GLM_FUNC_COMMON_INCLUDED</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define GLM_FUNC_COMMON_INCLUDED</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">#include &quot;setup.hpp&quot;</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#include &quot;precision.hpp&quot;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="preprocessor">#include &quot;type_int.hpp&quot;</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="preprocessor">#include &quot;_fixes.hpp&quot;</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keyword">namespace </span>glm</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;{</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#gaea946f96ec1df259802effe9f532e1c1">abs</a>(genType <span class="keyword">const</span> &amp; x);</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#gaa7afd59ab947e313d41cb6d9c655a80c">sign</a>(genType <span class="keyword">const</span> &amp; x);</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga86350252cc9bf86421317460bbd1f21c">floor</a>(genType <span class="keyword">const</span> &amp; x);</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#gadb091aed51e45872f6dc841affa41c5c">trunc</a>(genType <span class="keyword">const</span> &amp; x);</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga75ebab3fe88a9c5c769135cf5a2649ef">round</a>(genType <span class="keyword">const</span> &amp; x);</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga6535952553479a4bbca7f1f12a011b17">roundEven</a>(genType <span class="keyword">const</span> &amp; x);</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#gab81e02fff55c9391e28fa47e68c3c903">ceil</a>(genType <span class="keyword">const</span> &amp; x);</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#gad04ac2908d032d5518d5f6c8403dbc8b">fract</a>(genType <span class="keyword">const</span> &amp; x);</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga8cc8a75b05125fe1c30de43102ef42e1">mod</a>(</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; genType <span class="keyword">const</span> &amp; x,</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; genType <span class="keyword">const</span> &amp; y);</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga8cc8a75b05125fe1c30de43102ef42e1">mod</a>(</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; genType <span class="keyword">const</span> &amp; x,</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> &amp; y);</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#gae47da02eb07d660201c09a0df7298a05">modf</a>(</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; genType <span class="keyword">const</span> &amp; x,</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; genType &amp; i);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga3dc90dbd66c9ca1dd5625c93d9c50f02">min</a>(</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; genType <span class="keyword">const</span> &amp; x,</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; genType <span class="keyword">const</span> &amp; y);</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga3dc90dbd66c9ca1dd5625c93d9c50f02">min</a>(</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; genType <span class="keyword">const</span> &amp; x,</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> &amp; y);</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#gaa228561a9da55898f8f72ad2403fafac">max</a>(</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; genType <span class="keyword">const</span> &amp; x,</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; genType <span class="keyword">const</span> &amp; y);</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#gaa228561a9da55898f8f72ad2403fafac">max</a>(</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; genType <span class="keyword">const</span> &amp; x,</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> &amp; y);</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160;</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga72e9e213c84f06a329a2a838b51200f4">clamp</a>(</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; genType <span class="keyword">const</span> &amp; x,</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; genType <span class="keyword">const</span> &amp; minVal,</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; genType <span class="keyword">const</span> &amp; maxVal);</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160;</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType, precision P&gt;</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga72e9e213c84f06a329a2a838b51200f4">clamp</a>(</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; genType <span class="keyword">const</span> &amp; x,</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> &amp; minVal,</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> &amp; maxVal);</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160;</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genTypeT, <span class="keyword">typename</span> genTypeU&gt;</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; GLM_FUNC_DECL genTypeT <a class="code" href="a00155.html#ga78aae7eea618ca112053d59fe03db239">mix</a>(</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; genTypeT <span class="keyword">const</span> &amp; x,</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; genTypeT <span class="keyword">const</span> &amp; y,</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; genTypeU <span class="keyword">const</span> &amp; a);</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160;</div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#gaf21c84759af7799f573865f70c2f0a86">step</a>(</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; genType <span class="keyword">const</span> &amp; edge,</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; genType <span class="keyword">const</span> &amp; x);</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160;</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>, precision&gt; <span class="keyword">class </span>vecType, <span class="keyword">typename</span> T, precision P&gt;</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; GLM_FUNC_DECL vecType&lt;T, P&gt; <a class="code" href="a00155.html#gaf21c84759af7799f573865f70c2f0a86">step</a>(</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; T <span class="keyword">const</span> &amp; edge,</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; vecType&lt;T, P&gt; <span class="keyword">const</span> &amp; x);</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160;</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga754103c8d2cdaf40f71429252457c10a">smoothstep</a>(</div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; genType <span class="keyword">const</span> &amp; edge0,</div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160; genType <span class="keyword">const</span> &amp; edge1,</div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; genType <span class="keyword">const</span> &amp; x);</div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160;</div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga754103c8d2cdaf40f71429252457c10a">smoothstep</a>(</div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160; <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> &amp; edge0,</div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160; <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> &amp; edge1,</div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160; genType <span class="keyword">const</span> &amp; x);</div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160;</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt; </div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160; GLM_FUNC_DECL <span class="keyword">typename</span> genType::bool_type <a class="code" href="a00155.html#ga8a9dec5200888766fbcb51b6a5898728">isnan</a>(genType <span class="keyword">const</span> &amp; x);</div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160;</div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt; </div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160; GLM_FUNC_DECL <span class="keyword">typename</span> genType::bool_type <a class="code" href="a00155.html#ga9fce6a337c7e8ad089b9dc17c70cb873">isinf</a>(genType <span class="keyword">const</span> &amp; x);</div>
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160;</div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160; GLM_FUNC_DECL <span class="keywordtype">int</span> <a class="code" href="a00155.html#ga1425c1c3160ec51214b03a0469a3013d">floatBitsToInt</a>(<span class="keywordtype">float</span> <span class="keyword">const</span> &amp; v);</div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160;</div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>, precision&gt; <span class="keyword">class </span>vecType, precision P&gt;</div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160; GLM_FUNC_DECL vecType&lt;int, P&gt; <a class="code" href="a00155.html#ga1425c1c3160ec51214b03a0469a3013d">floatBitsToInt</a>(vecType&lt;float, P&gt; <span class="keyword">const</span> &amp; v);</div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160;</div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160; GLM_FUNC_DECL <a class="code" href="a00169.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> <a class="code" href="a00155.html#ga70e0271c34af52f3100c7960e18c3f2b">floatBitsToUint</a>(<span class="keywordtype">float</span> <span class="keyword">const</span> &amp; v);</div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160;</div>
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>, precision&gt; <span class="keyword">class </span>vecType, precision P&gt;</div>
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160; GLM_FUNC_DECL vecType&lt;uint, P&gt; <a class="code" href="a00155.html#ga70e0271c34af52f3100c7960e18c3f2b">floatBitsToUint</a>(vecType&lt;float, P&gt; <span class="keyword">const</span> &amp; v);</div>
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160;</div>
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>&#160; GLM_FUNC_DECL <span class="keywordtype">float</span> <a class="code" href="a00155.html#ga4fb7c21c2dce064b26fd9ccdaf9adcd4">intBitsToFloat</a>(<span class="keywordtype">int</span> <span class="keyword">const</span> &amp; v);</div>
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>&#160;</div>
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>, precision&gt; <span class="keyword">class </span>vecType, precision P&gt;</div>
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>&#160; GLM_FUNC_DECL vecType&lt;float, P&gt; <a class="code" href="a00155.html#ga4fb7c21c2dce064b26fd9ccdaf9adcd4">intBitsToFloat</a>(vecType&lt;int, P&gt; <span class="keyword">const</span> &amp; v);</div>
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>&#160;</div>
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>&#160; GLM_FUNC_DECL <span class="keywordtype">float</span> <a class="code" href="a00155.html#gab2bae0d15dcdca6093f88f76b3975d97">uintBitsToFloat</a>(<a class="code" href="a00169.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> <span class="keyword">const</span> &amp; v);</div>
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>&#160;</div>
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">template</span> &lt;<span class="keyword">typename</span>, precision&gt; <span class="keyword">class </span>vecType, precision P&gt;</div>
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>&#160; GLM_FUNC_DECL vecType&lt;float, P&gt; <a class="code" href="a00155.html#gab2bae0d15dcdca6093f88f76b3975d97">uintBitsToFloat</a>(vecType&lt;uint, P&gt; <span class="keyword">const</span> &amp; v);</div>
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>&#160;</div>
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;</div>
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#gad0f444d4b81cc53c3b6edf5aa25078c2">fma</a>(genType <span class="keyword">const</span> &amp; a, genType <span class="keyword">const</span> &amp; b, genType <span class="keyword">const</span> &amp; c);</div>
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span>&#160;</div>
<div class="line"><a name="l00438"></a><span class="lineno"> 438</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genIType&gt;</div>
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga20620e83544d1a988857a3bc4ebe0e1d">frexp</a>(genType <span class="keyword">const</span> &amp; x, genIType &amp; <a class="code" href="a00156.html#gae154699ba6bda068d4b87cf9b987381f">exp</a>);</div>
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>&#160;</div>
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genIType&gt;</div>
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>&#160; GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga52e319d7289b849ec92055abd4830533">ldexp</a>(genType <span class="keyword">const</span> &amp; x, genIType <span class="keyword">const</span> &amp; <a class="code" href="a00156.html#gae154699ba6bda068d4b87cf9b987381f">exp</a>);</div>
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>&#160;</div>
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span>&#160;}<span class="comment">//namespace glm</span></div>
<div class="line"><a name="l00457"></a><span class="lineno"> 457</span>&#160;</div>
<div class="line"><a name="l00458"></a><span class="lineno"> 458</span>&#160;<span class="preprocessor">#include &quot;func_common.inl&quot;</span></div>
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span>&#160;</div>
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span>&#160;<span class="preprocessor">#endif//GLM_FUNC_COMMON_INCLUDED</span></div>
<div class="ttc" id="a00155_html_ga86350252cc9bf86421317460bbd1f21c"><div class="ttname"><a href="a00155.html#ga86350252cc9bf86421317460bbd1f21c">glm::floor</a></div><div class="ttdeci">GLM_FUNC_DECL genType floor(genType const &amp;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="a00155_html_ga78aae7eea618ca112053d59fe03db239"><div class="ttname"><a href="a00155.html#ga78aae7eea618ca112053d59fe03db239">glm::mix</a></div><div class="ttdeci">GLM_FUNC_DECL genTypeT mix(genTypeT const &amp;x, genTypeT const &amp;y, genTypeU const &amp;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="a00169_html_ga91ad9478d81a7aaf2593e8d9c3d06a14"><div class="ttname"><a href="a00169.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="a00121_source.html#l00171">type_int.hpp:171</a></div></div>
<div class="ttc" id="a00155_html_ga8cc8a75b05125fe1c30de43102ef42e1"><div class="ttname"><a href="a00155.html#ga8cc8a75b05125fe1c30de43102ef42e1">glm::mod</a></div><div class="ttdeci">GLM_FUNC_DECL genType mod(genType const &amp;x, genType const &amp;y)</div><div class="ttdoc">Modulus. </div></div>
<div class="ttc" id="a00155_html_gae47da02eb07d660201c09a0df7298a05"><div class="ttname"><a href="a00155.html#gae47da02eb07d660201c09a0df7298a05">glm::modf</a></div><div class="ttdeci">GLM_FUNC_DECL genType modf(genType const &amp;x, genType &amp;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="a00156_html_gae154699ba6bda068d4b87cf9b987381f"><div class="ttname"><a href="a00156.html#gae154699ba6bda068d4b87cf9b987381f">glm::exp</a></div><div class="ttdeci">GLM_FUNC_DECL genType exp(genType const &amp;x)</div><div class="ttdoc">Returns the natural exponentiation of x, i.e., e^x. </div></div>
<div class="ttc" id="a00155_html_gad04ac2908d032d5518d5f6c8403dbc8b"><div class="ttname"><a href="a00155.html#gad04ac2908d032d5518d5f6c8403dbc8b">glm::fract</a></div><div class="ttdeci">GLM_FUNC_DECL genType fract(genType const &amp;x)</div><div class="ttdoc">Return x - floor(x). </div></div>
<div class="ttc" id="a00155_html_gab81e02fff55c9391e28fa47e68c3c903"><div class="ttname"><a href="a00155.html#gab81e02fff55c9391e28fa47e68c3c903">glm::ceil</a></div><div class="ttdeci">GLM_FUNC_DECL genType ceil(genType const &amp;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="a00155_html_ga8a9dec5200888766fbcb51b6a5898728"><div class="ttname"><a href="a00155.html#ga8a9dec5200888766fbcb51b6a5898728">glm::isnan</a></div><div class="ttdeci">GLM_FUNC_DECL genType::bool_type isnan(genType const &amp;x)</div><div class="ttdoc">Returns true if x holds a NaN (not a number) representation in the underlying implementation&amp;#39;s set of...</div></div>
<div class="ttc" id="a00155_html_gad0f444d4b81cc53c3b6edf5aa25078c2"><div class="ttname"><a href="a00155.html#gad0f444d4b81cc53c3b6edf5aa25078c2">glm::fma</a></div><div class="ttdeci">GLM_FUNC_DECL genType fma(genType const &amp;a, genType const &amp;b, genType const &amp;c)</div><div class="ttdoc">Computes and returns a * b + c. </div></div>
<div class="ttc" id="a00155_html_ga4fb7c21c2dce064b26fd9ccdaf9adcd4"><div class="ttname"><a href="a00155.html#ga4fb7c21c2dce064b26fd9ccdaf9adcd4">glm::intBitsToFloat</a></div><div class="ttdeci">GLM_FUNC_DECL float intBitsToFloat(int const &amp;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="a00155_html_gaf21c84759af7799f573865f70c2f0a86"><div class="ttname"><a href="a00155.html#gaf21c84759af7799f573865f70c2f0a86">glm::step</a></div><div class="ttdeci">GLM_FUNC_DECL genType step(genType const &amp;edge, genType const &amp;x)</div><div class="ttdoc">Returns 0.0 if x &amp;lt; edge, otherwise it returns 1.0 for each component of a genType. </div></div>
<div class="ttc" id="a00155_html_ga1425c1c3160ec51214b03a0469a3013d"><div class="ttname"><a href="a00155.html#ga1425c1c3160ec51214b03a0469a3013d">glm::floatBitsToInt</a></div><div class="ttdeci">GLM_FUNC_DECL int floatBitsToInt(float const &amp;v)</div><div class="ttdoc">Returns a signed integer value representing the encoding of a floating-point value. </div></div>
<div class="ttc" id="a00155_html_gadb091aed51e45872f6dc841affa41c5c"><div class="ttname"><a href="a00155.html#gadb091aed51e45872f6dc841affa41c5c">glm::trunc</a></div><div class="ttdeci">GLM_FUNC_DECL genType trunc(genType const &amp;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="a00155_html_ga6535952553479a4bbca7f1f12a011b17"><div class="ttname"><a href="a00155.html#ga6535952553479a4bbca7f1f12a011b17">glm::roundEven</a></div><div class="ttdeci">GLM_FUNC_DECL genType roundEven(genType const &amp;x)</div><div class="ttdoc">Returns a value equal to the nearest integer to x. </div></div>
<div class="ttc" id="a00155_html_ga75ebab3fe88a9c5c769135cf5a2649ef"><div class="ttname"><a href="a00155.html#ga75ebab3fe88a9c5c769135cf5a2649ef">glm::round</a></div><div class="ttdeci">GLM_FUNC_DECL genType round(genType const &amp;x)</div><div class="ttdoc">Returns a value equal to the nearest integer to x. </div></div>
<div class="ttc" id="a00155_html_gab2bae0d15dcdca6093f88f76b3975d97"><div class="ttname"><a href="a00155.html#gab2bae0d15dcdca6093f88f76b3975d97">glm::uintBitsToFloat</a></div><div class="ttdeci">GLM_FUNC_DECL float uintBitsToFloat(uint const &amp;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="a00155_html_ga70e0271c34af52f3100c7960e18c3f2b"><div class="ttname"><a href="a00155.html#ga70e0271c34af52f3100c7960e18c3f2b">glm::floatBitsToUint</a></div><div class="ttdeci">GLM_FUNC_DECL uint floatBitsToUint(float const &amp;v)</div><div class="ttdoc">Returns a unsigned integer value representing the encoding of a floating-point value. </div></div>
<div class="ttc" id="a00155_html_gaea946f96ec1df259802effe9f532e1c1"><div class="ttname"><a href="a00155.html#gaea946f96ec1df259802effe9f532e1c1">glm::abs</a></div><div class="ttdeci">GLM_FUNC_DECL genType abs(genType const &amp;x)</div><div class="ttdoc">Returns x if x &amp;gt;= 0; otherwise, it returns -x. </div></div>
<div class="ttc" id="a00155_html_ga9fce6a337c7e8ad089b9dc17c70cb873"><div class="ttname"><a href="a00155.html#ga9fce6a337c7e8ad089b9dc17c70cb873">glm::isinf</a></div><div class="ttdeci">GLM_FUNC_DECL genType::bool_type isinf(genType const &amp;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="a00155_html_ga52e319d7289b849ec92055abd4830533"><div class="ttname"><a href="a00155.html#ga52e319d7289b849ec92055abd4830533">glm::ldexp</a></div><div class="ttdeci">GLM_FUNC_DECL genType ldexp(genType const &amp;x, genIType const &amp;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="a00155_html_ga754103c8d2cdaf40f71429252457c10a"><div class="ttname"><a href="a00155.html#ga754103c8d2cdaf40f71429252457c10a">glm::smoothstep</a></div><div class="ttdeci">GLM_FUNC_DECL genType smoothstep(genType const &amp;edge0, genType const &amp;edge1, genType const &amp;x)</div><div class="ttdoc">Returns 0.0 if x &amp;lt;= edge0 and 1.0 if x &amp;gt;= edge1 and performs smooth Hermite interpolation between 0 a...</div></div>
<div class="ttc" id="a00155_html_ga72e9e213c84f06a329a2a838b51200f4"><div class="ttname"><a href="a00155.html#ga72e9e213c84f06a329a2a838b51200f4">glm::clamp</a></div><div class="ttdeci">GLM_FUNC_DECL genType clamp(genType const &amp;x, genType const &amp;minVal, genType const &amp;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="a00155_html_gaa228561a9da55898f8f72ad2403fafac"><div class="ttname"><a href="a00155.html#gaa228561a9da55898f8f72ad2403fafac">glm::max</a></div><div class="ttdeci">GLM_FUNC_DECL genType max(genType const &amp;x, genType const &amp;y)</div><div class="ttdoc">Returns y if x &amp;lt; y; otherwise, it returns x. </div></div>
<div class="ttc" id="a00155_html_gaa7afd59ab947e313d41cb6d9c655a80c"><div class="ttname"><a href="a00155.html#gaa7afd59ab947e313d41cb6d9c655a80c">glm::sign</a></div><div class="ttdeci">GLM_FUNC_DECL genType sign(genType const &amp;x)</div><div class="ttdoc">Returns 1.0 if x &amp;gt; 0, 0.0 if x == 0, or -1.0 if x &amp;lt; 0. </div></div>
<div class="ttc" id="a00155_html_ga3dc90dbd66c9ca1dd5625c93d9c50f02"><div class="ttname"><a href="a00155.html#ga3dc90dbd66c9ca1dd5625c93d9c50f02">glm::min</a></div><div class="ttdeci">GLM_FUNC_DECL genType min(genType const &amp;x, genType const &amp;y)</div><div class="ttdoc">Returns y if y &amp;lt; x; otherwise, it returns x. </div></div>
<div class="ttc" id="a00155_html_ga20620e83544d1a988857a3bc4ebe0e1d"><div class="ttname"><a href="a00155.html#ga20620e83544d1a988857a3bc4ebe0e1d">glm::frexp</a></div><div class="ttdeci">GLM_FUNC_DECL genType frexp(genType const &amp;x, genIType &amp;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><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>