<trclass="memdesc:ga693d77696ff36572a0da79efec965acd"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns x if x >= 0; otherwise, it returns -x. <ahref="a00145.html#ga693d77696ff36572a0da79efec965acd">More...</a><br/></td></tr>
<trclass="memitem:ga9189b2bec45ff301923ea8f8dd157fb8"><tdclass="memTemplParams"colspan="2">template<typename T , precision P, template< typename, precision > class vecType></td></tr>
<trclass="memitem:ga9189b2bec45ff301923ea8f8dd157fb8"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL vecType< T, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00145.html#ga9189b2bec45ff301923ea8f8dd157fb8">ceil</a> (vecType< T, P > const &x)</td></tr>
<trclass="memdesc:ga9189b2bec45ff301923ea8f8dd157fb8"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a value equal to the nearest integer that is greater than or equal to x. <ahref="a00145.html#ga9189b2bec45ff301923ea8f8dd157fb8">More...</a><br/></td></tr>
<trclass="memdesc:ga93bce26c7d80d30a62f5c508f8498a6c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. <ahref="a00145.html#ga93bce26c7d80d30a62f5c508f8498a6c">More...</a><br/></td></tr>
<trclass="memdesc:ga1425c1c3160ec51214b03a0469a3013d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a signed integer value representing the encoding of a floating-point value. <ahref="a00145.html#ga1425c1c3160ec51214b03a0469a3013d">More...</a><br/></td></tr>
<trclass="memitem:gac4a0710238ae54c67931dd29a0b0f873"><tdclass="memTemplParams"colspan="2">template<template< typename, precision > class vecType, precision P></td></tr>
<trclass="memitem:gac4a0710238ae54c67931dd29a0b0f873"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL vecType< int, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00145.html#gac4a0710238ae54c67931dd29a0b0f873">floatBitsToInt</a> (vecType< float, P > const &v)</td></tr>
<trclass="memdesc:gac4a0710238ae54c67931dd29a0b0f873"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a signed integer value representing the encoding of a floating-point value. <ahref="a00145.html#gac4a0710238ae54c67931dd29a0b0f873">More...</a><br/></td></tr>
<trclass="memdesc:ga70e0271c34af52f3100c7960e18c3f2b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a unsigned integer value representing the encoding of a floating-point value. <ahref="a00145.html#ga70e0271c34af52f3100c7960e18c3f2b">More...</a><br/></td></tr>
<trclass="memitem:ga1804d4c443605d8a27be644aa461afe4"><tdclass="memTemplParams"colspan="2">template<template< typename, precision > class vecType, precision P></td></tr>
<trclass="memitem:ga1804d4c443605d8a27be644aa461afe4"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL vecType< uint, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00145.html#ga1804d4c443605d8a27be644aa461afe4">floatBitsToUint</a> (vecType< float, P > const &v)</td></tr>
<trclass="memdesc:ga1804d4c443605d8a27be644aa461afe4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a unsigned integer value representing the encoding of a floating-point value. <ahref="a00145.html#ga1804d4c443605d8a27be644aa461afe4">More...</a><br/></td></tr>
<trclass="memitem:ga568b822b78f045f77c3325e165b44d5d"><tdclass="memTemplParams"colspan="2">template<typename T , precision P, template< typename, precision > class vecType></td></tr>
<trclass="memitem:ga568b822b78f045f77c3325e165b44d5d"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL vecType< T, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00145.html#ga568b822b78f045f77c3325e165b44d5d">floor</a> (vecType< T, P > const &x)</td></tr>
<trclass="memdesc:ga568b822b78f045f77c3325e165b44d5d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a value equal to the nearest integer that is less then or equal to x. <ahref="a00145.html#ga568b822b78f045f77c3325e165b44d5d">More...</a><br/></td></tr>
<trclass="memdesc:gad0f444d4b81cc53c3b6edf5aa25078c2"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Computes and returns a * b + c. <ahref="a00145.html#gad0f444d4b81cc53c3b6edf5aa25078c2">More...</a><br/></td></tr>
<trclass="memdesc:ga8ba89e40e55ae5cdf228548f9b7639c7"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Return x - floor(x). <ahref="a00145.html#ga8ba89e40e55ae5cdf228548f9b7639c7">More...</a><br/></td></tr>
<trclass="memdesc:ga20620e83544d1a988857a3bc4ebe0e1d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Splits x into a floating-point significand in the range [0.5, 1.0) and an integral exponent of two, such that: x = significand * exp(2, exponent) <ahref="a00145.html#ga20620e83544d1a988857a3bc4ebe0e1d">More...</a><br/></td></tr>
<trclass="memdesc:ga4fb7c21c2dce064b26fd9ccdaf9adcd4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a floating-point value corresponding to a signed integer encoding of a floating-point value. <ahref="a00145.html#ga4fb7c21c2dce064b26fd9ccdaf9adcd4">More...</a><br/></td></tr>
<trclass="memitem:gad21ab176dd0e6b59d923db5efca87f4e"><tdclass="memTemplParams"colspan="2">template<template< typename, precision > class vecType, precision P></td></tr>
<trclass="memitem:gad21ab176dd0e6b59d923db5efca87f4e"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL vecType< float, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00145.html#gad21ab176dd0e6b59d923db5efca87f4e">intBitsToFloat</a> (vecType< int, P > const &v)</td></tr>
<trclass="memdesc:gad21ab176dd0e6b59d923db5efca87f4e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a floating-point value corresponding to a signed integer encoding of a floating-point value. <ahref="a00145.html#gad21ab176dd0e6b59d923db5efca87f4e">More...</a><br/></td></tr>
<trclass="memitem:gaf28f7a4696746f081685c9fd05c7e2de"><tdclass="memTemplParams"colspan="2">template<typename T , precision P, template< typename, precision > class vecType></td></tr>
<trclass="memitem:gaf28f7a4696746f081685c9fd05c7e2de"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL vecType< bool, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00145.html#gaf28f7a4696746f081685c9fd05c7e2de">isinf</a> (vecType< T, P > const &x)</td></tr>
<trclass="memdesc:gaf28f7a4696746f081685c9fd05c7e2de"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if x holds a positive infinity or negative infinity representation in the underlying implementation's set of floating point representations. <ahref="a00145.html#gaf28f7a4696746f081685c9fd05c7e2de">More...</a><br/></td></tr>
<trclass="memitem:ga6cb8f202a52eed2331724a3800198ebf"><tdclass="memTemplParams"colspan="2">template<typename T , precision P, template< typename, precision > class vecType></td></tr>
<trclass="memitem:ga6cb8f202a52eed2331724a3800198ebf"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL vecType< bool, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00145.html#ga6cb8f202a52eed2331724a3800198ebf">isnan</a> (vecType< T, P > const &x)</td></tr>
<trclass="memdesc:ga6cb8f202a52eed2331724a3800198ebf"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of floating point representations. <ahref="a00145.html#ga6cb8f202a52eed2331724a3800198ebf">More...</a><br/></td></tr>
<trclass="memdesc:ga52e319d7289b849ec92055abd4830533"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Builds a floating-point number from x and the corresponding integral exponent of two in exp, returning: significand * exp(2, exponent) <ahref="a00145.html#ga52e319d7289b849ec92055abd4830533">More...</a><br/></td></tr>
<trclass="memdesc:ga98caa7f95a94c86a86ebce893a45326c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns y if x < y; otherwise, it returns x. <ahref="a00145.html#ga98caa7f95a94c86a86ebce893a45326c">More...</a><br/></td></tr>
<trclass="memdesc:ga2c2bde1cec025b7ddff83c74a1113719"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns y if y < x; otherwise, it returns x. <ahref="a00145.html#ga2c2bde1cec025b7ddff83c74a1113719">More...</a><br/></td></tr>
<trclass="memitem:gadccbaffe46f369cf1a96b2aef92cbfdd"><tdclass="memTemplParams"colspan="2">template<typename T , typename U , precision P, template< typename, precision > class vecType></td></tr>
<trclass="memitem:gadccbaffe46f369cf1a96b2aef92cbfdd"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL vecType< T, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00145.html#gadccbaffe46f369cf1a96b2aef92cbfdd">mix</a> (vecType< T, P > const &x, vecType< T, P > const &y, vecType< U, P > const &a)</td></tr>
<trclass="memdesc:gadccbaffe46f369cf1a96b2aef92cbfdd"><tdclass="mdescLeft"> </td><tdclass="mdescRight">If genTypeU is a floating scalar or vector: Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. <ahref="a00145.html#gadccbaffe46f369cf1a96b2aef92cbfdd">More...</a><br/></td></tr>
<trclass="memdesc:ga85e33f139b8db1b39b590a5713b9e679"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the fractional part of x and sets i to the integer part (as a whole number floating point value). <ahref="a00145.html#ga85e33f139b8db1b39b590a5713b9e679">More...</a><br/></td></tr>
<trclass="memitem:gada0165544c0618d634c8056a88082ce9"><tdclass="memTemplParams"colspan="2">template<typename T , precision P, template< typename, precision > class vecType></td></tr>
<trclass="memitem:gada0165544c0618d634c8056a88082ce9"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL vecType< T, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00145.html#gada0165544c0618d634c8056a88082ce9">round</a> (vecType< T, P > const &x)</td></tr>
<trclass="memdesc:gada0165544c0618d634c8056a88082ce9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a value equal to the nearest integer to x. <ahref="a00145.html#gada0165544c0618d634c8056a88082ce9">More...</a><br/></td></tr>
<trclass="memitem:ga655598104195a60a950291485e84a97e"><tdclass="memTemplParams"colspan="2">template<typename T , precision P, template< typename, precision > class vecType></td></tr>
<trclass="memitem:ga655598104195a60a950291485e84a97e"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL vecType< T, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00145.html#ga655598104195a60a950291485e84a97e">roundEven</a> (vecType< T, P > const &x)</td></tr>
<trclass="memdesc:ga655598104195a60a950291485e84a97e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a value equal to the nearest integer to x. <ahref="a00145.html#ga655598104195a60a950291485e84a97e">More...</a><br/></td></tr>
<trclass="memitem:gac3446b4138e0b8757561c07cd19f084d"><tdclass="memTemplParams"colspan="2">template<typename T , precision P, template< typename, precision > class vecType></td></tr>
<trclass="memitem:gac3446b4138e0b8757561c07cd19f084d"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL vecType< T, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00145.html#gac3446b4138e0b8757561c07cd19f084d">sign</a> (vecType< T, P > const &x)</td></tr>
<trclass="memdesc:gac3446b4138e0b8757561c07cd19f084d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns 1.0 if x > 0, 0.0 if x == 0, or -1.0 if x < 0. <ahref="a00145.html#gac3446b4138e0b8757561c07cd19f084d">More...</a><br/></td></tr>
<trclass="memdesc:ga562edf7eca082cc5b7a0aaf180436daf"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 and 1 when edge0 < x < edge1. <ahref="a00145.html#ga562edf7eca082cc5b7a0aaf180436daf">More...</a><br/></td></tr>
<trclass="memdesc:ga015a1261ff23e12650211aa872863cce"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns 0.0 if x < edge, otherwise it returns 1.0 for each component of a genType. <ahref="a00145.html#ga015a1261ff23e12650211aa872863cce">More...</a><br/></td></tr>
<trclass="memitem:gaf15b74ab672af2c7d7b535a9b4803700"><tdclass="memTemplParams"colspan="2">template<template< typename, precision > class vecType, typename T , precision P></td></tr>
<trclass="memitem:gaf15b74ab672af2c7d7b535a9b4803700"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL vecType< T, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00145.html#gaf15b74ab672af2c7d7b535a9b4803700">step</a> (T edge, vecType< T, P > const &x)</td></tr>
<trclass="memdesc:gaf15b74ab672af2c7d7b535a9b4803700"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns 0.0 if x < edge, otherwise it returns 1.0. <ahref="a00145.html#gaf15b74ab672af2c7d7b535a9b4803700">More...</a><br/></td></tr>
<trclass="memitem:ga6d84170051fb87c183c38883ec85b411"><tdclass="memTemplParams"colspan="2">template<template< typename, precision > class vecType, typename T , precision P></td></tr>
<trclass="memitem:ga6d84170051fb87c183c38883ec85b411"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL vecType< T, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00145.html#ga6d84170051fb87c183c38883ec85b411">step</a> (vecType< T, P > const &edge, vecType< T, P > const &x)</td></tr>
<trclass="memdesc:ga6d84170051fb87c183c38883ec85b411"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns 0.0 if x < edge, otherwise it returns 1.0. <ahref="a00145.html#ga6d84170051fb87c183c38883ec85b411">More...</a><br/></td></tr>
<trclass="memitem:ga634cdbf8b37edca03f2248450570fd54"><tdclass="memTemplParams"colspan="2">template<typename T , precision P, template< typename, precision > class vecType></td></tr>
<trclass="memitem:ga634cdbf8b37edca03f2248450570fd54"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL vecType< T, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00145.html#ga634cdbf8b37edca03f2248450570fd54">trunc</a> (vecType< T, P > const &x)</td></tr>
<trclass="memdesc:ga634cdbf8b37edca03f2248450570fd54"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolute value of x. <ahref="a00145.html#ga634cdbf8b37edca03f2248450570fd54">More...</a><br/></td></tr>
<trclass="memdesc:gab2bae0d15dcdca6093f88f76b3975d97"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value. <ahref="a00145.html#gab2bae0d15dcdca6093f88f76b3975d97">More...</a><br/></td></tr>
<trclass="memitem:ga3acab37650ecd792dc84548094b58684"><tdclass="memTemplParams"colspan="2">template<template< typename, precision > class vecType, precision P></td></tr>
<trclass="memitem:ga3acab37650ecd792dc84548094b58684"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL vecType< float, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00145.html#ga3acab37650ecd792dc84548094b58684">uintBitsToFloat</a> (vecType< uint, P > const &v)</td></tr>
<trclass="memdesc:ga3acab37650ecd792dc84548094b58684"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value. <ahref="a00145.html#ga3acab37650ecd792dc84548094b58684">More...</a><br/></td></tr>
<p>Splits x into a floating-point significand in the range [0.5, 1.0) and an integral exponent of two, such that: x = significand * exp(2, exponent) </p>
<p>The significand is returned by the function and the exponent is returned in the parameter exp. For a floating-point value of zero, the significant and exponent are both zero. For a floating-point value that is an infinity or is not a number, the results are undefined.</p>
<p>Returns a floating-point value corresponding to a signed integer encoding of a floating-point value. </p>
<p>If an inf or NaN is passed in, it will not signal, and the resulting floating point value is unspecified. Otherwise, the bit-level representation is preserved.</p>
<dlclass="section see"><dt>See also</dt><dd><ahref="http://www.opengl.org/sdk/docs/manglsl/xhtml/intBitsToFloat.xml">GLSL intBitsToFloat man page</a></dd>
<dd>
<ahref="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a></dd></dl>
<tdclass="paramtype">vecType< int, P > const & </td>
<tdclass="paramname"><em>v</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Returns a floating-point value corresponding to a signed integer encoding of a floating-point value. </p>
<p>If an inf or NaN is passed in, it will not signal, and the resulting floating point value is unspecified. Otherwise, the bit-level representation is preserved.</p>
<dlclass="section see"><dt>See also</dt><dd><ahref="http://www.opengl.org/sdk/docs/manglsl/xhtml/intBitsToFloat.xml">GLSL intBitsToFloat man page</a></dd>
<dd>
<ahref="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a></dd></dl>
<tdclass="paramtype">vecType< T, P > const & </td>
<tdclass="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Returns true if x holds a positive infinity or negative infinity representation in the underlying implementation's set of floating point representations. </p>
<p>Returns false otherwise, including for implementations with no infinity representations.</p>
<tdclass="paramtype">vecType< T, P > const & </td>
<tdclass="paramname"><em>x</em>, </td>
</tr>
<tr>
<tdclass="paramkey"></td>
<td></td>
<tdclass="paramtype">vecType< T, P > const & </td>
<tdclass="paramname"><em>y</em>, </td>
</tr>
<tr>
<tdclass="paramkey"></td>
<td></td>
<tdclass="paramtype">vecType< U, P > const & </td>
<tdclass="paramname"><em>a</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>If genTypeU is a floating scalar or vector: Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. </p>
<p>The value for a is not restricted to the range [0, 1].</p>
<p>If genTypeU is a boolean scalar or vector: Selects which vector each returned component comes from. For a component of that is false, the corresponding component of x is returned. For a component of a that is true, the corresponding component of y is returned. Components of x and y that are not selected are allowed to be invalid floating point values and will have no effect on the results. Thus, this provides different functionality than genType mix(genType x, genType y, genType(a)) where a is a Boolean vector.</p>
<dlclass="section see"><dt>See also</dt><dd><ahref="http://www.opengl.org/sdk/docs/manglsl/xhtml/mix.xml">GLSL mix man page</a></dd>
<dd>
<ahref="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a></dd></dl>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">x</td><td>Value to interpolate. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">y</td><td>Value to interpolate. </td></tr>
<divclass="line">glm::vec4 r = <aclass="code"href="a00145.html#gadccbaffe46f369cf1a96b2aef92cbfdd">glm::mix</a>(g, h, a); <spanclass="comment">// Interpolate with a floating-point scalar two vectors. </span></div>
<divclass="line"><aclass="code"href="a00156.html#gafbab23070ca47932487d25332adc7d7c">glm::vec4</a> s = <aclass="code"href="a00145.html#gadccbaffe46f369cf1a96b2aef92cbfdd">glm::mix</a>(g, h, b); <spanclass="comment">// Teturns g or h;</span></div>
<divclass="line"><aclass="code"href="a00156.html#gabebd0c7e3c5cd337d95c313c5e8b8db4">glm::dvec3</a> t = <aclass="code"href="a00145.html#gadccbaffe46f369cf1a96b2aef92cbfdd">glm::mix</a>(<aclass="code"href="a00162.html#ga4b7956eb6e2fbedfc7cf2e46e85c5139">e</a>, f, a); <spanclass="comment">// Types of the third parameter is not required to match with the first and the second.</span></div>
<divclass="line"><aclass="code"href="a00156.html#gafbab23070ca47932487d25332adc7d7c">glm::vec4</a> u = <aclass="code"href="a00145.html#gadccbaffe46f369cf1a96b2aef92cbfdd">glm::mix</a>(g, h, r); <spanclass="comment">// Interpolations can be perform per component with a vector for the last parameter.</span></div>
</div><!-- fragment -->
<p>Referenced by <aclass="el"href="a00017_source.html#l00041">glm::lerp()</a>.</p>
<tdclass="paramtype">vecType< T, P > const & </td>
<tdclass="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Returns a value equal to the nearest integer to x. </p>
<p>The fraction 0.5 will round in a direction chosen by the implementation, presumably the direction that is fastest. This includes the possibility that round(x) returns the same value as roundEven(x) for all values of x.</p>
<p>Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 and 1 when edge0 < x < edge1. </p>
<p>This is useful in cases where you would want a threshold function with a smooth transition. This is equivalent to: genType t; t = clamp ((x - edge0) / (edge1 - edge0), 0, 1); return t * t * (3 - 2 * t); Results are undefined if edge0 >= edge1.</p>
<p>Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value. </p>
<p>If an inf or NaN is passed in, it will not signal, and the resulting floating point value is unspecified. Otherwise, the bit-level representation is preserved.</p>
<dlclass="section see"><dt>See also</dt><dd><ahref="http://www.opengl.org/sdk/docs/manglsl/xhtml/uintBitsToFloat.xml">GLSL uintBitsToFloat man page</a></dd>
<dd>
<ahref="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a></dd></dl>
<tdclass="paramtype">vecType<<aclass="el"href="a00157.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>, P > const & </td>
<tdclass="paramname"><em>v</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value. </p>
<p>If an inf or NaN is passed in, it will not signal, and the resulting floating point value is unspecified. Otherwise, the bit-level representation is preserved.</p>
<dlclass="section see"><dt>See also</dt><dd><ahref="http://www.opengl.org/sdk/docs/manglsl/xhtml/uintBitsToFloat.xml">GLSL uintBitsToFloat man page</a></dd>
<dd>
<ahref="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a></dd></dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hrclass="footer"/><addressclass="footer"><small>
Generated by  <ahref="http://www.doxygen.org/index.html">