mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
241 lines
38 KiB
HTML
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
|
|
 <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 Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related 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 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> </div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#ifndef GLM_FUNC_COMMON_INCLUDED</span></div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <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> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include "setup.hpp"</span></div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#include "precision.hpp"</span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#include "type_int.hpp"</span></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#include "_fixes.hpp"</span></div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">namespace </span>glm</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> {</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#gaea946f96ec1df259802effe9f532e1c1">abs</a>(genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#gaa7afd59ab947e313d41cb6d9c655a80c">sign</a>(genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  </div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga86350252cc9bf86421317460bbd1f21c">floor</a>(genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#gadb091aed51e45872f6dc841affa41c5c">trunc</a>(genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga75ebab3fe88a9c5c769135cf5a2649ef">round</a>(genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  </div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga6535952553479a4bbca7f1f12a011b17">roundEven</a>(genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#gab81e02fff55c9391e28fa47e68c3c903">ceil</a>(genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> </div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#gad04ac2908d032d5518d5f6c8403dbc8b">fract</a>(genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  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>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  genType <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  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>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> </div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  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>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  genType & i);</div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  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>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  genType <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  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>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  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>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  genType <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  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>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  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>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  genType <span class="keyword">const</span> & minVal,</div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  genType <span class="keyword">const</span> & maxVal);</div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> </div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType, precision P></div>
|
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  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>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & minVal,</div>
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & maxVal);</div>
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div>
|
|
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genTypeT, <span class="keyword">typename</span> genTypeU></div>
|
|
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  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>  genTypeT <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  genTypeT <span class="keyword">const</span> & y,</div>
|
|
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  genTypeU <span class="keyword">const</span> & a);</div>
|
|
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> </div>
|
|
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  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>  genType <span class="keyword">const</span> & edge,</div>
|
|
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> </div>
|
|
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="keyword">template</span> <<span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType, <span class="keyword">typename</span> T, precision P></div>
|
|
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00155.html#gaf21c84759af7799f573865f70c2f0a86">step</a>(</div>
|
|
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  T <span class="keyword">const</span> & edge,</div>
|
|
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> </div>
|
|
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  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>  genType <span class="keyword">const</span> & edge0,</div>
|
|
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  genType <span class="keyword">const</span> & edge1,</div>
|
|
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span> </div>
|
|
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  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>  <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & edge0,</div>
|
|
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & edge1,</div>
|
|
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span> </div>
|
|
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType> </div>
|
|
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  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> & x);</div>
|
|
<div class="line"><a name="l00325"></a><span class="lineno"> 325</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 <span class="keyword">typename</span> genType::bool_type <a class="code" href="a00155.html#ga9fce6a337c7e8ad089b9dc17c70cb873">isinf</a>(genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> </div>
|
|
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  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> & v);</div>
|
|
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span> </div>
|
|
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  <span class="keyword">template</span> <<span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType, precision P></div>
|
|
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  GLM_FUNC_DECL vecType<int, P> <a class="code" href="a00155.html#ga1425c1c3160ec51214b03a0469a3013d">floatBitsToInt</a>(vecType<float, P> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span> </div>
|
|
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  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> & v);</div>
|
|
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span> </div>
|
|
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <span class="keyword">template</span> <<span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType, precision P></div>
|
|
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  GLM_FUNC_DECL vecType<uint, P> <a class="code" href="a00155.html#ga70e0271c34af52f3100c7960e18c3f2b">floatBitsToUint</a>(vecType<float, P> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span> </div>
|
|
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  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> & v);</div>
|
|
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span> </div>
|
|
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="keyword">template</span> <<span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType, precision P></div>
|
|
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  GLM_FUNC_DECL vecType<float, P> <a class="code" href="a00155.html#ga4fb7c21c2dce064b26fd9ccdaf9adcd4">intBitsToFloat</a>(vecType<int, P> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span> </div>
|
|
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  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> & v);</div>
|
|
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span> </div>
|
|
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  <span class="keyword">template</span> <<span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType, precision P></div>
|
|
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  GLM_FUNC_DECL vecType<float, P> <a class="code" href="a00155.html#gab2bae0d15dcdca6093f88f76b3975d97">uintBitsToFloat</a>(vecType<uint, P> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span> </div>
|
|
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.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="l00423"></a><span class="lineno"> 423</span> </div>
|
|
<div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genIType></div>
|
|
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga20620e83544d1a988857a3bc4ebe0e1d">frexp</a>(genType <span class="keyword">const</span> & x, genIType & <a class="code" href="a00156.html#gae154699ba6bda068d4b87cf9b987381f">exp</a>);</div>
|
|
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span> </div>
|
|
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genIType></div>
|
|
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga52e319d7289b849ec92055abd4830533">ldexp</a>(genType <span class="keyword">const</span> & x, genIType <span class="keyword">const</span> & <a class="code" href="a00156.html#gae154699ba6bda068d4b87cf9b987381f">exp</a>);</div>
|
|
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span> </div>
|
|
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span> }<span class="comment">//namespace glm</span></div>
|
|
<div class="line"><a name="l00457"></a><span class="lineno"> 457</span> </div>
|
|
<div class="line"><a name="l00458"></a><span class="lineno"> 458</span> <span class="preprocessor">#include "func_common.inl"</span></div>
|
|
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span> </div>
|
|
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span> <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 &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 &x, genTypeT const &y, genTypeU const &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 &x, genType const &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 &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="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 &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 &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 &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 &x)</div><div class="ttdoc">Returns true if x holds a NaN (not a number) representation in the underlying implementation&#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 &a, genType const &b, genType const &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 &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 &edge, genType const &x)</div><div class="ttdoc">Returns 0.0 if x &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 &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 &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 &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 &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 &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 &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 &x)</div><div class="ttdoc">Returns x if x &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 &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 &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="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 &edge0, genType const &edge1, genType const &x)</div><div class="ttdoc">Returns 0.0 if x &lt;= edge0 and 1.0 if x &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 &x, genType const &minVal, genType 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="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 &x, genType const &y)</div><div class="ttdoc">Returns y if x &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 &x)</div><div class="ttdoc">Returns 1.0 if x &gt; 0, 0.0 if x == 0, or -1.0 if x &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 &x, genType const &y)</div><div class="ttdoc">Returns y if y &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 &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><!-- 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.5
|
|
</small></address>
|
|
</body>
|
|
</html>
|