mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 10:14:35 +00:00
239 lines
43 KiB
HTML
239 lines
43 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.8"/>
|
|
<title>0.9.6: 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 id="projectlogo"><img alt="Logo" src="logo.png"/></td>
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">0.9.6
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.8 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
</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_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_153b03dd71a7bff437c38ec53cb2e014.html">Source</a></li><li class="navelem"><a class="el" href="dir_0c6652232a835be54bedd6cfd7502504.html">G-Truc</a></li><li class="navelem"><a class="el" href="dir_e2c7faa62a52820b5be8795affd6e495.html">glm</a></li><li class="navelem"><a class="el" href="dir_5cf96241cdcf6779b80e104875f9716f.html">glm</a></li><li class="navelem"><a class="el" href="dir_9b22c367036d391e575f56d067c9855b.html">detail</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">func_common.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="a00028.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#pragma once</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="preprocessor">#include "<a class="code" href="a00104.html">setup.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#include "<a class="code" href="a00091.html">precision.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#include "<a class="code" href="a00118.html">type_int.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor">#include "<a class="code" href="a00002.html">_fixes.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">namespace </span><a class="code" href="a00145.html">glm</a></div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> {</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  GLM_FUNC_DECL genType <a class="code" href="a00149.html#ga693d77696ff36572a0da79efec965acd">abs</a>(genType x);</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga693d77696ff36572a0da79efec965acd">abs</a>(vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#gac3446b4138e0b8757561c07cd19f084d">sign</a>(vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga568b822b78f045f77c3325e165b44d5d">floor</a>(vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga634cdbf8b37edca03f2248450570fd54">trunc</a>(vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#gada0165544c0618d634c8056a88082ce9">round</a>(vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga655598104195a60a950291485e84a97e">roundEven</a>(vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga9189b2bec45ff301923ea8f8dd157fb8">ceil</a>(vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  GLM_FUNC_DECL genType <a class="code" href="a00149.html#ga8ba89e40e55ae5cdf228548f9b7639c7">fract</a>(genType x);</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga8ba89e40e55ae5cdf228548f9b7639c7">fract</a>(vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  GLM_FUNC_DECL genType <a class="code" href="a00167.html#gaf5ae5330f6b30b4a35fb95f9a73d6134">mod</a>(genType x, genType y);</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00167.html#gaf5ae5330f6b30b4a35fb95f9a73d6134">mod</a>(vecType<T, P> <span class="keyword">const</span> & x, T y);</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00167.html#gaf5ae5330f6b30b4a35fb95f9a73d6134">mod</a>(vecType<T, P> <span class="keyword">const</span> & x, vecType<T, P> <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  GLM_FUNC_DECL genType <a class="code" href="a00149.html#ga85e33f139b8db1b39b590a5713b9e679">modf</a>(genType x, genType & i);</div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  GLM_FUNC_DECL genType <a class="code" href="a00149.html#ga2c2bde1cec025b7ddff83c74a1113719">min</a>(genType x, genType y);</div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga2c2bde1cec025b7ddff83c74a1113719">min</a>(vecType<T, P> <span class="keyword">const</span> & x, T 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> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga2c2bde1cec025b7ddff83c74a1113719">min</a>(vecType<T, P> <span class="keyword">const</span> & x, vecType<T, P> <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="a00149.html#ga98caa7f95a94c86a86ebce893a45326c">max</a>(genType x, genType y);</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> </div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga98caa7f95a94c86a86ebce893a45326c">max</a>(vecType<T, P> <span class="keyword">const</span> & x, T y);</div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> </div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga98caa7f95a94c86a86ebce893a45326c">max</a>(vecType<T, P> <span class="keyword">const</span> & x, vecType<T, P> <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  GLM_FUNC_DECL genType <a class="code" href="a00149.html#ga93bce26c7d80d30a62f5c508f8498a6c">clamp</a>(genType x, genType minVal, genType maxVal);</div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> </div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga93bce26c7d80d30a62f5c508f8498a6c">clamp</a>(vecType<T, P> <span class="keyword">const</span> & x, T minVal, T maxVal);</div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> </div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga93bce26c7d80d30a62f5c508f8498a6c">clamp</a>(vecType<T, P> <span class="keyword">const</span> & x, vecType<T, P> <span class="keyword">const</span> & minVal, vecType<T, P> <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="l00255"></a><span class="lineno"> 255</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span> U, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#gadccbaffe46f369cf1a96b2aef92cbfdd">mix</a>(vecType<T, P> <span class="keyword">const</span> & x, vecType<T, P> <span class="keyword">const</span> & y, vecType<U, P> <span class="keyword">const</span> & a);</div>
|
|
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> </div>
|
|
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span> U, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#gadccbaffe46f369cf1a96b2aef92cbfdd">mix</a>(vecType<T, P> <span class="keyword">const</span> & x, vecType<T, P> <span class="keyword">const</span> & y, U a);</div>
|
|
<div class="line"><a name="l00260"></a><span class="lineno"> 260</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="a00149.html#gadccbaffe46f369cf1a96b2aef92cbfdd">mix</a>(genTypeT x, genTypeT y, genTypeU a);</div>
|
|
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span> </div>
|
|
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  GLM_FUNC_DECL genType <a class="code" href="a00149.html#ga6d84170051fb87c183c38883ec85b411">step</a>(genType edge, genType x);</div>
|
|
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> </div>
|
|
<div class="line"><a name="l00275"></a><span class="lineno"> 275</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="l00276"></a><span class="lineno"> 276</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga6d84170051fb87c183c38883ec85b411">step</a>(T edge, vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div>
|
|
<div class="line"><a name="l00282"></a><span class="lineno"> 282</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="l00283"></a><span class="lineno"> 283</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga6d84170051fb87c183c38883ec85b411">step</a>(vecType<T, P> <span class="keyword">const</span> & edge, 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="a00149.html#ga562edf7eca082cc5b7a0aaf180436daf">smoothstep</a>(genType edge0, genType edge1, genType x);</div>
|
|
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span> </div>
|
|
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga562edf7eca082cc5b7a0aaf180436daf">smoothstep</a>(T edge0, T edge1, vecType<T, P> <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> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00149.html#ga562edf7eca082cc5b7a0aaf180436daf">smoothstep</a>(vecType<T, P> <span class="keyword">const</span> & edge0, vecType<T, P> <span class="keyword">const</span> & edge1, vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span> </div>
|
|
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  GLM_FUNC_DECL vecType<bool, P> <a class="code" href="a00149.html#ga6cb8f202a52eed2331724a3800198ebf">isnan</a>(vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> </div>
|
|
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  GLM_FUNC_DECL vecType<bool, P> <a class="code" href="a00149.html#gaf28f7a4696746f081685c9fd05c7e2de">isinf</a>(vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> </div>
|
|
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  GLM_FUNC_DECL <span class="keywordtype">int</span> <a class="code" href="a00149.html#gac4a0710238ae54c67931dd29a0b0f873">floatBitsToInt</a>(<span class="keywordtype">float</span> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> </div>
|
|
<div class="line"><a name="l00350"></a><span class="lineno"> 350</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="l00351"></a><span class="lineno"> 351</span>  GLM_FUNC_DECL vecType<int, P> <a class="code" href="a00149.html#gac4a0710238ae54c67931dd29a0b0f873">floatBitsToInt</a>(vecType<float, P> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span> </div>
|
|
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  GLM_FUNC_DECL <a class="code" href="a00162.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> <a class="code" href="a00149.html#ga1804d4c443605d8a27be644aa461afe4">floatBitsToUint</a>(<span class="keywordtype">float</span> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span> </div>
|
|
<div class="line"><a name="l00367"></a><span class="lineno"> 367</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="l00368"></a><span class="lineno"> 368</span>  GLM_FUNC_DECL vecType<uint, P> <a class="code" href="a00149.html#ga1804d4c443605d8a27be644aa461afe4">floatBitsToUint</a>(vecType<float, P> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span> </div>
|
|
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  GLM_FUNC_DECL <span class="keywordtype">float</span> <a class="code" href="a00149.html#gad21ab176dd0e6b59d923db5efca87f4e">intBitsToFloat</a>(<span class="keywordtype">int</span> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span> </div>
|
|
<div class="line"><a name="l00388"></a><span class="lineno"> 388</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="l00389"></a><span class="lineno"> 389</span>  GLM_FUNC_DECL vecType<float, P> <a class="code" href="a00149.html#gad21ab176dd0e6b59d923db5efca87f4e">intBitsToFloat</a>(vecType<int, P> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span> </div>
|
|
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  GLM_FUNC_DECL <span class="keywordtype">float</span> <a class="code" href="a00149.html#ga3acab37650ecd792dc84548094b58684">uintBitsToFloat</a>(<a class="code" href="a00162.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span> </div>
|
|
<div class="line"><a name="l00409"></a><span class="lineno"> 409</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="l00410"></a><span class="lineno"> 410</span>  GLM_FUNC_DECL vecType<float, P> <a class="code" href="a00149.html#ga3acab37650ecd792dc84548094b58684">uintBitsToFloat</a>(vecType<uint, P> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span> </div>
|
|
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType></div>
|
|
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  GLM_FUNC_DECL genType <a class="code" href="a00149.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="l00420"></a><span class="lineno"> 420</span> </div>
|
|
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genIType></div>
|
|
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  GLM_FUNC_DECL genType <a class="code" href="a00149.html#ga20620e83544d1a988857a3bc4ebe0e1d">frexp</a>(genType <span class="keyword">const</span> & x, genIType & <a class="code" href="a00150.html#ga25e54a7f44fc49ec6ac6ffc7675cf04a">exp</a>);</div>
|
|
<div class="line"><a name="l00437"></a><span class="lineno"> 437</span> </div>
|
|
<div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genIType></div>
|
|
<div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  GLM_FUNC_DECL genType <a class="code" href="a00149.html#ga52e319d7289b849ec92055abd4830533">ldexp</a>(genType <span class="keyword">const</span> & x, genIType <span class="keyword">const</span> & <a class="code" href="a00150.html#ga25e54a7f44fc49ec6ac6ffc7675cf04a">exp</a>);</div>
|
|
<div class="line"><a name="l00451"></a><span class="lineno"> 451</span> </div>
|
|
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span> }<span class="comment">//namespace glm</span></div>
|
|
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span> </div>
|
|
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span> <span class="preprocessor">#include "func_common.inl"</span></div>
|
|
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span> </div>
|
|
<div class="ttc" id="a00091_html"><div class="ttname"><a href="a00091.html">precision.hpp</a></div><div class="ttdoc">OpenGL Mathematics (glm.g-truc.net) </div></div>
|
|
<div class="ttc" id="a00149_html_ga6cb8f202a52eed2331724a3800198ebf"><div class="ttname"><a href="a00149.html#ga6cb8f202a52eed2331724a3800198ebf">glm::isnan</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< bool, P > isnan(vecType< T, P > const &x)</div><div class="ttdoc">Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of...</div></div>
|
|
<div class="ttc" id="a00149_html_ga3acab37650ecd792dc84548094b58684"><div class="ttname"><a href="a00149.html#ga3acab37650ecd792dc84548094b58684">glm::uintBitsToFloat</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< float, P > uintBitsToFloat(vecType< uint, P > const &v)</div><div class="ttdoc">Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value...</div></div>
|
|
<div class="ttc" id="a00149_html_ga634cdbf8b37edca03f2248450570fd54"><div class="ttname"><a href="a00149.html#ga634cdbf8b37edca03f2248450570fd54">glm::trunc</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > trunc(vecType< T, P > const &x)</div><div class="ttdoc">Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolut...</div></div>
|
|
<div class="ttc" id="a00149_html_ga568b822b78f045f77c3325e165b44d5d"><div class="ttname"><a href="a00149.html#ga568b822b78f045f77c3325e165b44d5d">glm::floor</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > floor(vecType< T, P > const &x)</div><div class="ttdoc">Returns a value equal to the nearest integer that is less then or equal to x. </div></div>
|
|
<div class="ttc" id="a00149_html_gac4a0710238ae54c67931dd29a0b0f873"><div class="ttname"><a href="a00149.html#gac4a0710238ae54c67931dd29a0b0f873">glm::floatBitsToInt</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< int, P > floatBitsToInt(vecType< float, P > const &v)</div><div class="ttdoc">Returns a signed integer value representing the encoding of a floating-point value. </div></div>
|
|
<div class="ttc" id="a00162_html_ga91ad9478d81a7aaf2593e8d9c3d06a14"><div class="ttname"><a href="a00162.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="a00118_source.html#l00306">type_int.hpp:306</a></div></div>
|
|
<div class="ttc" id="a00149_html_ga2c2bde1cec025b7ddff83c74a1113719"><div class="ttname"><a href="a00149.html#ga2c2bde1cec025b7ddff83c74a1113719">glm::min</a></div><div class="ttdeci">GLM_FUNC_DECL genType min(genType x, genType y)</div><div class="ttdoc">Returns y if y < x; otherwise, it returns x. </div></div>
|
|
<div class="ttc" id="a00149_html_ga20620e83544d1a988857a3bc4ebe0e1d"><div class="ttname"><a href="a00149.html#ga20620e83544d1a988857a3bc4ebe0e1d">glm::frexp</a></div><div class="ttdeci">GLM_FUNC_DECL genType frexp(genType const &x, genIType &exp)</div><div class="ttdoc">Splits x into a floating-point significand in the range [0.5, 1.0) and an integral exponent of two...</div></div>
|
|
<div class="ttc" id="a00149_html_ga1804d4c443605d8a27be644aa461afe4"><div class="ttname"><a href="a00149.html#ga1804d4c443605d8a27be644aa461afe4">glm::floatBitsToUint</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< uint, P > floatBitsToUint(vecType< float, P > const &v)</div><div class="ttdoc">Returns a unsigned integer value representing the encoding of a floating-point value. </div></div>
|
|
<div class="ttc" id="a00149_html_ga93bce26c7d80d30a62f5c508f8498a6c"><div class="ttname"><a href="a00149.html#ga93bce26c7d80d30a62f5c508f8498a6c">glm::clamp</a></div><div class="ttdeci">GLM_FUNC_DECL genType clamp(genType x, genType minVal, genType 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="a00118_html"><div class="ttname"><a href="a00118.html">type_int.hpp</a></div><div class="ttdoc">OpenGL Mathematics (glm.g-truc.net) </div></div>
|
|
<div class="ttc" id="a00149_html_gad0f444d4b81cc53c3b6edf5aa25078c2"><div class="ttname"><a href="a00149.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="a00149_html_gaf28f7a4696746f081685c9fd05c7e2de"><div class="ttname"><a href="a00149.html#gaf28f7a4696746f081685c9fd05c7e2de">glm::isinf</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< bool, P > isinf(vecType< T, P > const &x)</div><div class="ttdoc">Returns true if x holds a positive infinity or negative infinity representation in the underlying imp...</div></div>
|
|
<div class="ttc" id="a00149_html_ga8ba89e40e55ae5cdf228548f9b7639c7"><div class="ttname"><a href="a00149.html#ga8ba89e40e55ae5cdf228548f9b7639c7">glm::fract</a></div><div class="ttdeci">GLM_FUNC_DECL genType fract(genType x)</div><div class="ttdoc">Return x - floor(x). </div></div>
|
|
<div class="ttc" id="a00150_html_ga25e54a7f44fc49ec6ac6ffc7675cf04a"><div class="ttname"><a href="a00150.html#ga25e54a7f44fc49ec6ac6ffc7675cf04a">glm::exp</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > exp(vecType< T, P > const &v)</div><div class="ttdoc">Returns the natural exponentiation of x, i.e., e^x. </div></div>
|
|
<div class="ttc" id="a00149_html_ga562edf7eca082cc5b7a0aaf180436daf"><div class="ttname"><a href="a00149.html#ga562edf7eca082cc5b7a0aaf180436daf">glm::smoothstep</a></div><div class="ttdeci">GLM_FUNC_DECL genType smoothstep(genType edge0, genType edge1, genType x)</div><div class="ttdoc">Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 a...</div></div>
|
|
<div class="ttc" id="a00149_html_ga85e33f139b8db1b39b590a5713b9e679"><div class="ttname"><a href="a00149.html#ga85e33f139b8db1b39b590a5713b9e679">glm::modf</a></div><div class="ttdeci">GLM_FUNC_DECL genType modf(genType x, genType &i)</div><div class="ttdoc">Returns the fractional part of x and sets i to the integer part (as a whole number floating point val...</div></div>
|
|
<div class="ttc" id="a00149_html_gadccbaffe46f369cf1a96b2aef92cbfdd"><div class="ttname"><a href="a00149.html#gadccbaffe46f369cf1a96b2aef92cbfdd">glm::mix</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > mix(vecType< T, P > const &x, vecType< T, P > const &y, vecType< U, P > 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="a00149_html_gad21ab176dd0e6b59d923db5efca87f4e"><div class="ttname"><a href="a00149.html#gad21ab176dd0e6b59d923db5efca87f4e">glm::intBitsToFloat</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< float, P > intBitsToFloat(vecType< int, P > const &v)</div><div class="ttdoc">Returns a floating-point value corresponding to a signed integer encoding of a floating-point value...</div></div>
|
|
<div class="ttc" id="a00149_html_ga98caa7f95a94c86a86ebce893a45326c"><div class="ttname"><a href="a00149.html#ga98caa7f95a94c86a86ebce893a45326c">glm::max</a></div><div class="ttdeci">GLM_FUNC_DECL genType max(genType x, genType y)</div><div class="ttdoc">Returns y if x < y; otherwise, it returns x. </div></div>
|
|
<div class="ttc" id="a00167_html_gaf5ae5330f6b30b4a35fb95f9a73d6134"><div class="ttname"><a href="a00167.html#gaf5ae5330f6b30b4a35fb95f9a73d6134">glm::mod</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > mod(vecType< T, P > const &x, vecType< T, P > const &y)</div><div class="ttdoc">Modulus. </div></div>
|
|
<div class="ttc" id="a00145_html"><div class="ttname"><a href="a00145.html">glm</a></div><div class="ttdef"><b>Definition:</b> <a href="a00003_source.html#l00039">_noise.hpp:39</a></div></div>
|
|
<div class="ttc" id="a00149_html_ga693d77696ff36572a0da79efec965acd"><div class="ttname"><a href="a00149.html#ga693d77696ff36572a0da79efec965acd">glm::abs</a></div><div class="ttdeci">GLM_FUNC_DECL genType abs(genType x)</div><div class="ttdoc">Returns x if x >= 0; otherwise, it returns -x. </div></div>
|
|
<div class="ttc" id="a00149_html_ga655598104195a60a950291485e84a97e"><div class="ttname"><a href="a00149.html#ga655598104195a60a950291485e84a97e">glm::roundEven</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > roundEven(vecType< T, P > const &x)</div><div class="ttdoc">Returns a value equal to the nearest integer to x. </div></div>
|
|
<div class="ttc" id="a00149_html_gac3446b4138e0b8757561c07cd19f084d"><div class="ttname"><a href="a00149.html#gac3446b4138e0b8757561c07cd19f084d">glm::sign</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > sign(vecType< T, P > const &x)</div><div class="ttdoc">Returns 1.0 if x > 0, 0.0 if x == 0, or -1.0 if x < 0. </div></div>
|
|
<div class="ttc" id="a00149_html_ga9189b2bec45ff301923ea8f8dd157fb8"><div class="ttname"><a href="a00149.html#ga9189b2bec45ff301923ea8f8dd157fb8">glm::ceil</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > ceil(vecType< T, P > const &x)</div><div class="ttdoc">Returns a value equal to the nearest integer that is greater than or equal to x. </div></div>
|
|
<div class="ttc" id="a00149_html_ga52e319d7289b849ec92055abd4830533"><div class="ttname"><a href="a00149.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="a00104_html"><div class="ttname"><a href="a00104.html">setup.hpp</a></div><div class="ttdoc">OpenGL Mathematics (glm.g-truc.net) </div></div>
|
|
<div class="ttc" id="a00149_html_ga6d84170051fb87c183c38883ec85b411"><div class="ttname"><a href="a00149.html#ga6d84170051fb87c183c38883ec85b411">glm::step</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > step(vecType< T, P > const &edge, vecType< T, P > const &x)</div><div class="ttdoc">Returns 0.0 if x < edge, otherwise it returns 1.0. </div></div>
|
|
<div class="ttc" id="a00002_html"><div class="ttname"><a href="a00002.html">_fixes.hpp</a></div><div class="ttdoc">OpenGL Mathematics (glm.g-truc.net) </div></div>
|
|
<div class="ttc" id="a00149_html_gada0165544c0618d634c8056a88082ce9"><div class="ttname"><a href="a00149.html#gada0165544c0618d634c8056a88082ce9">glm::round</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > round(vecType< T, P > const &x)</div><div class="ttdoc">Returns a value equal to the nearest integer to x. </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.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|