mirror of
https://github.com/g-truc/glm.git
synced 2024-11-30 03:44:38 +00:00
239 lines
37 KiB
HTML
239 lines
37 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 "_fixes.hpp"</span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">namespace </span>glm</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> {</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</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="l00055"></a><span class="lineno"> 55</span> </div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</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="l00064"></a><span class="lineno"> 64</span>  </div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</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="l00073"></a><span class="lineno"> 73</span> </div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</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="l00083"></a><span class="lineno"> 83</span> </div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</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="l00096"></a><span class="lineno"> 96</span>  </div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</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="l00108"></a><span class="lineno"> 108</span> </div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</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="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="a00155.html#gad04ac2908d032d5518d5f6c8403dbc8b">fract</a>(genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga8cc8a75b05125fe1c30de43102ef42e1">mod</a>(</div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  genType <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga8cc8a75b05125fe1c30de43102ef42e1">mod</a>(</div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#gae47da02eb07d660201c09a0df7298a05">modf</a>(</div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  genType & i);</div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga3dc90dbd66c9ca1dd5625c93d9c50f02">min</a>(</div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  genType <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga3dc90dbd66c9ca1dd5625c93d9c50f02">min</a>(</div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#gaa228561a9da55898f8f72ad2403fafac">max</a>(</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  genType <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#gaa228561a9da55898f8f72ad2403fafac">max</a>(</div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga72e9e213c84f06a329a2a838b51200f4">clamp</a>(</div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  genType <span class="keyword">const</span> & minVal,</div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  genType <span class="keyword">const</span> & maxVal);</div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType, precision P></div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga72e9e213c84f06a329a2a838b51200f4">clamp</a>(</div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  genType <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & minVal,</div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & maxVal);</div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> </div>
|
|
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genTypeT, <span class="keyword">typename</span> genTypeU></div>
|
|
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  GLM_FUNC_DECL genTypeT <a class="code" href="a00155.html#ga78aae7eea618ca112053d59fe03db239">mix</a>(</div>
|
|
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  genTypeT <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  genTypeT <span class="keyword">const</span> & y,</div>
|
|
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  genTypeU <span class="keyword">const</span> & a);</div>
|
|
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span> </div>
|
|
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#gaf21c84759af7799f573865f70c2f0a86">step</a>(</div>
|
|
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  genType <span class="keyword">const</span> & edge,</div>
|
|
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span> </div>
|
|
<div class="line"><a name="l00278"></a><span class="lineno"> 278</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="l00279"></a><span class="lineno"> 279</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00155.html#gaf21c84759af7799f573865f70c2f0a86">step</a>(</div>
|
|
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  T <span class="keyword">const</span> & edge,</div>
|
|
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> </div>
|
|
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga754103c8d2cdaf40f71429252457c10a">smoothstep</a>(</div>
|
|
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  genType <span class="keyword">const</span> & edge0,</div>
|
|
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  genType <span class="keyword">const</span> & edge1,</div>
|
|
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> </div>
|
|
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  GLM_FUNC_DECL genType <a class="code" href="a00155.html#ga754103c8d2cdaf40f71429252457c10a">smoothstep</a>(</div>
|
|
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & edge0,</div>
|
|
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & edge1,</div>
|
|
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  genType <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span> </div>
|
|
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType> </div>
|
|
<div class="line"><a name="l00322"></a><span class="lineno"> 322</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="l00323"></a><span class="lineno"> 323</span> </div>
|
|
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType> </div>
|
|
<div class="line"><a name="l00335"></a><span class="lineno"> 335</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="l00336"></a><span class="lineno"> 336</span> </div>
|
|
<div class="line"><a name="l00343"></a><span class="lineno"> 343</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="l00344"></a><span class="lineno"> 344</span> </div>
|
|
<div class="line"><a name="l00351"></a><span class="lineno"> 351</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="l00352"></a><span class="lineno"> 352</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="l00353"></a><span class="lineno"> 353</span> </div>
|
|
<div class="line"><a name="l00360"></a><span class="lineno"> 360</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="l00361"></a><span class="lineno"> 361</span> </div>
|
|
<div class="line"><a name="l00368"></a><span class="lineno"> 368</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="l00369"></a><span class="lineno"> 369</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="l00370"></a><span class="lineno"> 370</span> </div>
|
|
<div class="line"><a name="l00379"></a><span class="lineno"> 379</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="l00380"></a><span class="lineno"> 380</span> </div>
|
|
<div class="line"><a name="l00389"></a><span class="lineno"> 389</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="l00390"></a><span class="lineno"> 390</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="l00391"></a><span class="lineno"> 391</span> </div>
|
|
<div class="line"><a name="l00400"></a><span class="lineno"> 400</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="l00401"></a><span class="lineno"> 401</span> </div>
|
|
<div class="line"><a name="l00410"></a><span class="lineno"> 410</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="l00411"></a><span class="lineno"> 411</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="l00412"></a><span class="lineno"> 412</span> </div>
|
|
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00420"></a><span class="lineno"> 420</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="l00421"></a><span class="lineno"> 421</span> </div>
|
|
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genIType></div>
|
|
<div class="line"><a name="l00437"></a><span class="lineno"> 437</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="l00438"></a><span class="lineno"> 438</span> </div>
|
|
<div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genIType></div>
|
|
<div class="line"><a name="l00451"></a><span class="lineno"> 451</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="l00452"></a><span class="lineno"> 452</span> </div>
|
|
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span> }<span class="comment">//namespace glm</span></div>
|
|
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span> </div>
|
|
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span> <span class="preprocessor">#include "func_common.inl"</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">#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>
|