mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
275 lines
39 KiB
HTML
275 lines
39 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.10"/>
|
|
<title>0.9.9 API documenation: func_common.hpp File Reference</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="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</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="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">0.9.9 API documenation
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.10 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<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>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_934f46a345653ef2b3014a1b37a162c1.html">G:</a></li><li class="navelem"><a class="el" href="dir_98f7f9d41f9d3029bd68cf237526a774.html">Source</a></li><li class="navelem"><a class="el" href="dir_9344afb825aed5e2f5be1d2015dde43c.html">G-Truc</a></li><li class="navelem"><a class="el" href="dir_45973f864e07b2505003ae343b7c8af7.html">glm</a></li><li class="navelem"><a class="el" href="dir_304be5dfae1339a7705426c0b536faf2.html">glm</a></li><li class="navelem"><a class="el" href="dir_da256b9dd32ba43e2eaa8a2832c37f1b.html">detail</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">func_common.hpp File Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p><a class="el" href="a00158.html">GLM Core</a>
|
|
<a href="#details">More...</a></p>
|
|
|
|
<p><a href="a00032_source.html">Go to the source code of this file.</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:ga693d77696ff36572a0da79efec965acd"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr class="memitem:ga693d77696ff36572a0da79efec965acd"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga693d77696ff36572a0da79efec965acd">abs</a> (genType x)</td></tr>
|
|
<tr class="memdesc:ga693d77696ff36572a0da79efec965acd"><td class="mdescLeft"> </td><td class="mdescRight">Returns x if x >= 0; otherwise, it returns -x. <a href="a00148.html#ga693d77696ff36572a0da79efec965acd">More...</a><br /></td></tr>
|
|
<tr class="separator:ga693d77696ff36572a0da79efec965acd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa62178552f8850f2dc8c779978ed3ea8"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gaa62178552f8850f2dc8c779978ed3ea8"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#gaa62178552f8850f2dc8c779978ed3ea8">abs</a> (vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:gaa62178552f8850f2dc8c779978ed3ea8"><td class="mdescLeft"> </td><td class="mdescRight">Returns x if x >= 0; otherwise, it returns -x. <a href="a00148.html#gaa62178552f8850f2dc8c779978ed3ea8">More...</a><br /></td></tr>
|
|
<tr class="separator:gaa62178552f8850f2dc8c779978ed3ea8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga11903ad28d1bcec0df713b4c3004ce2b"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga11903ad28d1bcec0df713b4c3004ce2b"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga11903ad28d1bcec0df713b4c3004ce2b">ceil</a> (vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:ga11903ad28d1bcec0df713b4c3004ce2b"><td class="mdescLeft"> </td><td class="mdescRight">Returns a value equal to the nearest integer that is greater than or equal to x. <a href="a00148.html#ga11903ad28d1bcec0df713b4c3004ce2b">More...</a><br /></td></tr>
|
|
<tr class="separator:ga11903ad28d1bcec0df713b4c3004ce2b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga93bce26c7d80d30a62f5c508f8498a6c"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr class="memitem:ga93bce26c7d80d30a62f5c508f8498a6c"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga93bce26c7d80d30a62f5c508f8498a6c">clamp</a> (genType x, genType minVal, genType maxVal)</td></tr>
|
|
<tr class="memdesc:ga93bce26c7d80d30a62f5c508f8498a6c"><td class="mdescLeft"> </td><td class="mdescRight">Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. <a href="a00148.html#ga93bce26c7d80d30a62f5c508f8498a6c">More...</a><br /></td></tr>
|
|
<tr class="separator:ga93bce26c7d80d30a62f5c508f8498a6c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga3b8e8c9628aed83ba775e32d92ea1ec1"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga3b8e8c9628aed83ba775e32d92ea1ec1"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga3b8e8c9628aed83ba775e32d92ea1ec1">clamp</a> (vec< L, T, P > const &x, T minVal, T maxVal)</td></tr>
|
|
<tr class="memdesc:ga3b8e8c9628aed83ba775e32d92ea1ec1"><td class="mdescLeft"> </td><td class="mdescRight">Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. <a href="a00148.html#ga3b8e8c9628aed83ba775e32d92ea1ec1">More...</a><br /></td></tr>
|
|
<tr class="separator:ga3b8e8c9628aed83ba775e32d92ea1ec1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaeebf946ec0cc5ef78a0eefb8ff4717e2"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gaeebf946ec0cc5ef78a0eefb8ff4717e2"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#gaeebf946ec0cc5ef78a0eefb8ff4717e2">clamp</a> (vec< L, T, P > const &x, vec< L, T, P > const &minVal, vec< L, T, P > const &maxVal)</td></tr>
|
|
<tr class="memdesc:gaeebf946ec0cc5ef78a0eefb8ff4717e2"><td class="mdescLeft"> </td><td class="mdescRight">Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. <a href="a00148.html#gaeebf946ec0cc5ef78a0eefb8ff4717e2">More...</a><br /></td></tr>
|
|
<tr class="separator:gaeebf946ec0cc5ef78a0eefb8ff4717e2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga1425c1c3160ec51214b03a0469a3013d"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00148.html#ga1425c1c3160ec51214b03a0469a3013d">floatBitsToInt</a> (float const &v)</td></tr>
|
|
<tr class="memdesc:ga1425c1c3160ec51214b03a0469a3013d"><td class="mdescLeft"> </td><td class="mdescRight">Returns a signed integer value representing the encoding of a floating-point value. <a href="a00148.html#ga1425c1c3160ec51214b03a0469a3013d">More...</a><br /></td></tr>
|
|
<tr class="separator:ga1425c1c3160ec51214b03a0469a3013d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga8c8c06c97f5318f971db3172b71af54c"><td class="memTemplParams" colspan="2">template<length_t L, qualifier P> </td></tr>
|
|
<tr class="memitem:ga8c8c06c97f5318f971db3172b71af54c"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, int, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga8c8c06c97f5318f971db3172b71af54c">floatBitsToInt</a> (vec< L, float, P > const &v)</td></tr>
|
|
<tr class="memdesc:ga8c8c06c97f5318f971db3172b71af54c"><td class="mdescLeft"> </td><td class="mdescRight">Returns a signed integer value representing the encoding of a floating-point value. <a href="a00148.html#ga8c8c06c97f5318f971db3172b71af54c">More...</a><br /></td></tr>
|
|
<tr class="separator:ga8c8c06c97f5318f971db3172b71af54c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga70e0271c34af52f3100c7960e18c3f2b"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint </td><td class="memItemRight" valign="bottom"><a class="el" href="a00148.html#ga70e0271c34af52f3100c7960e18c3f2b">floatBitsToUint</a> (float const &v)</td></tr>
|
|
<tr class="memdesc:ga70e0271c34af52f3100c7960e18c3f2b"><td class="mdescLeft"> </td><td class="mdescRight">Returns a unsigned integer value representing the encoding of a floating-point value. <a href="a00148.html#ga70e0271c34af52f3100c7960e18c3f2b">More...</a><br /></td></tr>
|
|
<tr class="separator:ga70e0271c34af52f3100c7960e18c3f2b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0967707ab72af2ffafc86369df61f095"><td class="memTemplParams" colspan="2">template<length_t L, qualifier P> </td></tr>
|
|
<tr class="memitem:ga0967707ab72af2ffafc86369df61f095"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, uint, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga0967707ab72af2ffafc86369df61f095">floatBitsToUint</a> (vec< L, float, P > const &v)</td></tr>
|
|
<tr class="memdesc:ga0967707ab72af2ffafc86369df61f095"><td class="mdescLeft"> </td><td class="mdescRight">Returns a unsigned integer value representing the encoding of a floating-point value. <a href="a00148.html#ga0967707ab72af2ffafc86369df61f095">More...</a><br /></td></tr>
|
|
<tr class="separator:ga0967707ab72af2ffafc86369df61f095"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab6f24b0f819381899f58803f3b005bf1"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gab6f24b0f819381899f58803f3b005bf1"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#gab6f24b0f819381899f58803f3b005bf1">floor</a> (vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:gab6f24b0f819381899f58803f3b005bf1"><td class="mdescLeft"> </td><td class="mdescRight">Returns a value equal to the nearest integer that is less then or equal to x. <a href="a00148.html#gab6f24b0f819381899f58803f3b005bf1">More...</a><br /></td></tr>
|
|
<tr class="separator:gab6f24b0f819381899f58803f3b005bf1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gad0f444d4b81cc53c3b6edf5aa25078c2"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr class="memitem:gad0f444d4b81cc53c3b6edf5aa25078c2"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#gad0f444d4b81cc53c3b6edf5aa25078c2">fma</a> (genType const &a, genType const &b, genType const &c)</td></tr>
|
|
<tr class="memdesc:gad0f444d4b81cc53c3b6edf5aa25078c2"><td class="mdescLeft"> </td><td class="mdescRight">Computes and returns a * b + c. <a href="a00148.html#gad0f444d4b81cc53c3b6edf5aa25078c2">More...</a><br /></td></tr>
|
|
<tr class="separator:gad0f444d4b81cc53c3b6edf5aa25078c2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga8ba89e40e55ae5cdf228548f9b7639c7"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr class="memitem:ga8ba89e40e55ae5cdf228548f9b7639c7"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga8ba89e40e55ae5cdf228548f9b7639c7">fract</a> (genType x)</td></tr>
|
|
<tr class="memdesc:ga8ba89e40e55ae5cdf228548f9b7639c7"><td class="mdescLeft"> </td><td class="mdescRight">Return x - floor(x). <a href="a00148.html#ga8ba89e40e55ae5cdf228548f9b7639c7">More...</a><br /></td></tr>
|
|
<tr class="separator:ga8ba89e40e55ae5cdf228548f9b7639c7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gae11058a6237b65256d23ea206ea47ca1"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gae11058a6237b65256d23ea206ea47ca1"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#gae11058a6237b65256d23ea206ea47ca1">fract</a> (vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:gae11058a6237b65256d23ea206ea47ca1"><td class="mdescLeft"> </td><td class="mdescRight">Return x - floor(x). <a href="a00148.html#gae11058a6237b65256d23ea206ea47ca1">More...</a><br /></td></tr>
|
|
<tr class="separator:gae11058a6237b65256d23ea206ea47ca1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga20620e83544d1a988857a3bc4ebe0e1d"><td class="memTemplParams" colspan="2">template<typename genType , typename genIType > </td></tr>
|
|
<tr class="memitem:ga20620e83544d1a988857a3bc4ebe0e1d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga20620e83544d1a988857a3bc4ebe0e1d">frexp</a> (genType const &x, genIType &exp)</td></tr>
|
|
<tr class="memdesc:ga20620e83544d1a988857a3bc4ebe0e1d"><td class="mdescLeft"> </td><td class="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) <a href="a00148.html#ga20620e83544d1a988857a3bc4ebe0e1d">More...</a><br /></td></tr>
|
|
<tr class="separator:ga20620e83544d1a988857a3bc4ebe0e1d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga4fb7c21c2dce064b26fd9ccdaf9adcd4"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float </td><td class="memItemRight" valign="bottom"><a class="el" href="a00148.html#ga4fb7c21c2dce064b26fd9ccdaf9adcd4">intBitsToFloat</a> (int const &v)</td></tr>
|
|
<tr class="memdesc:ga4fb7c21c2dce064b26fd9ccdaf9adcd4"><td class="mdescLeft"> </td><td class="mdescRight">Returns a floating-point value corresponding to a signed integer encoding of a floating-point value. <a href="a00148.html#ga4fb7c21c2dce064b26fd9ccdaf9adcd4">More...</a><br /></td></tr>
|
|
<tr class="separator:ga4fb7c21c2dce064b26fd9ccdaf9adcd4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga9139db8c4b8c7ea8c0b3a503e21f63b9"><td class="memTemplParams" colspan="2">template<length_t L, qualifier P> </td></tr>
|
|
<tr class="memitem:ga9139db8c4b8c7ea8c0b3a503e21f63b9"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, float, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga9139db8c4b8c7ea8c0b3a503e21f63b9">intBitsToFloat</a> (vec< L, int, P > const &v)</td></tr>
|
|
<tr class="memdesc:ga9139db8c4b8c7ea8c0b3a503e21f63b9"><td class="mdescLeft"> </td><td class="mdescRight">Returns a floating-point value corresponding to a signed integer encoding of a floating-point value. <a href="a00148.html#ga9139db8c4b8c7ea8c0b3a503e21f63b9">More...</a><br /></td></tr>
|
|
<tr class="separator:ga9139db8c4b8c7ea8c0b3a503e21f63b9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0fb03e57d4cf522f0f1ce77f89b9c30b"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga0fb03e57d4cf522f0f1ce77f89b9c30b"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, bool, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga0fb03e57d4cf522f0f1ce77f89b9c30b">isinf</a> (vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:ga0fb03e57d4cf522f0f1ce77f89b9c30b"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if x holds a positive infinity or negative infinity representation in the underlying implementation's set of floating point representations. <a href="a00148.html#ga0fb03e57d4cf522f0f1ce77f89b9c30b">More...</a><br /></td></tr>
|
|
<tr class="separator:ga0fb03e57d4cf522f0f1ce77f89b9c30b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gad030d597b01970e80d11301d5dd2f905"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gad030d597b01970e80d11301d5dd2f905"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, bool, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#gad030d597b01970e80d11301d5dd2f905">isnan</a> (vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:gad030d597b01970e80d11301d5dd2f905"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of floating point representations. <a href="a00148.html#gad030d597b01970e80d11301d5dd2f905">More...</a><br /></td></tr>
|
|
<tr class="separator:gad030d597b01970e80d11301d5dd2f905"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga52e319d7289b849ec92055abd4830533"><td class="memTemplParams" colspan="2">template<typename genType , typename genIType > </td></tr>
|
|
<tr class="memitem:ga52e319d7289b849ec92055abd4830533"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga52e319d7289b849ec92055abd4830533">ldexp</a> (genType const &x, genIType const &exp)</td></tr>
|
|
<tr class="memdesc:ga52e319d7289b849ec92055abd4830533"><td class="mdescLeft"> </td><td class="mdescRight">Builds a floating-point number from x and the corresponding integral exponent of two in exp, returning: significand * exp(2, exponent) <a href="a00148.html#ga52e319d7289b849ec92055abd4830533">More...</a><br /></td></tr>
|
|
<tr class="separator:ga52e319d7289b849ec92055abd4830533"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga98caa7f95a94c86a86ebce893a45326c"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr class="memitem:ga98caa7f95a94c86a86ebce893a45326c"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga98caa7f95a94c86a86ebce893a45326c">max</a> (genType x, genType y)</td></tr>
|
|
<tr class="memdesc:ga98caa7f95a94c86a86ebce893a45326c"><td class="mdescLeft"> </td><td class="mdescRight">Returns y if x < y; otherwise, it returns x. <a href="a00148.html#ga98caa7f95a94c86a86ebce893a45326c">More...</a><br /></td></tr>
|
|
<tr class="separator:ga98caa7f95a94c86a86ebce893a45326c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6cb0c8b55ff7f709797fe8dda46bdf10"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga6cb0c8b55ff7f709797fe8dda46bdf10"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga6cb0c8b55ff7f709797fe8dda46bdf10">max</a> (vec< L, T, P > const &x, T y)</td></tr>
|
|
<tr class="memdesc:ga6cb0c8b55ff7f709797fe8dda46bdf10"><td class="mdescLeft"> </td><td class="mdescRight">Returns y if x < y; otherwise, it returns x. <a href="a00148.html#ga6cb0c8b55ff7f709797fe8dda46bdf10">More...</a><br /></td></tr>
|
|
<tr class="separator:ga6cb0c8b55ff7f709797fe8dda46bdf10"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaca193a66794114f8a6c077bf0aff8f71"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gaca193a66794114f8a6c077bf0aff8f71"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#gaca193a66794114f8a6c077bf0aff8f71">max</a> (vec< L, T, P > const &x, vec< L, T, P > const &y)</td></tr>
|
|
<tr class="memdesc:gaca193a66794114f8a6c077bf0aff8f71"><td class="mdescLeft"> </td><td class="mdescRight">Returns y if x < y; otherwise, it returns x. <a href="a00148.html#gaca193a66794114f8a6c077bf0aff8f71">More...</a><br /></td></tr>
|
|
<tr class="separator:gaca193a66794114f8a6c077bf0aff8f71"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2c2bde1cec025b7ddff83c74a1113719"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr class="memitem:ga2c2bde1cec025b7ddff83c74a1113719"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga2c2bde1cec025b7ddff83c74a1113719">min</a> (genType x, genType y)</td></tr>
|
|
<tr class="memdesc:ga2c2bde1cec025b7ddff83c74a1113719"><td class="mdescLeft"> </td><td class="mdescRight">Returns y if y < x; otherwise, it returns x. <a href="a00148.html#ga2c2bde1cec025b7ddff83c74a1113719">More...</a><br /></td></tr>
|
|
<tr class="separator:ga2c2bde1cec025b7ddff83c74a1113719"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gad6611b39260564d999e5ac57f5fb8cce"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gad6611b39260564d999e5ac57f5fb8cce"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#gad6611b39260564d999e5ac57f5fb8cce">min</a> (vec< L, T, P > const &x, T y)</td></tr>
|
|
<tr class="memdesc:gad6611b39260564d999e5ac57f5fb8cce"><td class="mdescLeft"> </td><td class="mdescRight">Returns y if y < x; otherwise, it returns x. <a href="a00148.html#gad6611b39260564d999e5ac57f5fb8cce">More...</a><br /></td></tr>
|
|
<tr class="separator:gad6611b39260564d999e5ac57f5fb8cce"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0b96592c4a34c3f83701b96321c2eba0"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga0b96592c4a34c3f83701b96321c2eba0"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga0b96592c4a34c3f83701b96321c2eba0">min</a> (vec< L, T, P > const &x, vec< L, T, P > const &y)</td></tr>
|
|
<tr class="memdesc:ga0b96592c4a34c3f83701b96321c2eba0"><td class="mdescLeft"> </td><td class="mdescRight">Returns y if y < x; otherwise, it returns x. <a href="a00148.html#ga0b96592c4a34c3f83701b96321c2eba0">More...</a><br /></td></tr>
|
|
<tr class="separator:ga0b96592c4a34c3f83701b96321c2eba0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga8e93f374aae27d1a88b921860351f8d4"><td class="memTemplParams" colspan="2">template<typename genTypeT , typename genTypeU > </td></tr>
|
|
<tr class="memitem:ga8e93f374aae27d1a88b921860351f8d4"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genTypeT </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga8e93f374aae27d1a88b921860351f8d4">mix</a> (genTypeT x, genTypeT y, genTypeU a)</td></tr>
|
|
<tr class="memdesc:ga8e93f374aae27d1a88b921860351f8d4"><td class="mdescLeft"> </td><td class="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. <a href="a00148.html#ga8e93f374aae27d1a88b921860351f8d4">More...</a><br /></td></tr>
|
|
<tr class="separator:ga8e93f374aae27d1a88b921860351f8d4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga12201563ef902e3b07e0d1d7656efdb1"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr class="memitem:ga12201563ef902e3b07e0d1d7656efdb1"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga12201563ef902e3b07e0d1d7656efdb1">mod</a> (genType x, genType y)</td></tr>
|
|
<tr class="memdesc:ga12201563ef902e3b07e0d1d7656efdb1"><td class="mdescLeft"> </td><td class="mdescRight">Modulus. <a href="a00148.html#ga12201563ef902e3b07e0d1d7656efdb1">More...</a><br /></td></tr>
|
|
<tr class="separator:ga12201563ef902e3b07e0d1d7656efdb1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga763008cf5da01d4334911c4f555ad186"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga763008cf5da01d4334911c4f555ad186"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga763008cf5da01d4334911c4f555ad186">mod</a> (vec< L, T, P > const &x, T y)</td></tr>
|
|
<tr class="memdesc:ga763008cf5da01d4334911c4f555ad186"><td class="mdescLeft"> </td><td class="mdescRight">Modulus. <a href="a00148.html#ga763008cf5da01d4334911c4f555ad186">More...</a><br /></td></tr>
|
|
<tr class="separator:ga763008cf5da01d4334911c4f555ad186"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab570443c91443542da1a7acd05b8b32b"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gab570443c91443542da1a7acd05b8b32b"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#gab570443c91443542da1a7acd05b8b32b">mod</a> (vec< L, T, P > const &x, vec< L, T, P > const &y)</td></tr>
|
|
<tr class="memdesc:gab570443c91443542da1a7acd05b8b32b"><td class="mdescLeft"> </td><td class="mdescRight">Modulus. <a href="a00148.html#gab570443c91443542da1a7acd05b8b32b">More...</a><br /></td></tr>
|
|
<tr class="separator:gab570443c91443542da1a7acd05b8b32b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga85e33f139b8db1b39b590a5713b9e679"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr class="memitem:ga85e33f139b8db1b39b590a5713b9e679"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga85e33f139b8db1b39b590a5713b9e679">modf</a> (genType x, genType &i)</td></tr>
|
|
<tr class="memdesc:ga85e33f139b8db1b39b590a5713b9e679"><td class="mdescLeft"> </td><td class="mdescRight">Returns the fractional part of x and sets i to the integer part (as a whole number floating point value). <a href="a00148.html#ga85e33f139b8db1b39b590a5713b9e679">More...</a><br /></td></tr>
|
|
<tr class="separator:ga85e33f139b8db1b39b590a5713b9e679"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga9f5e4c6153ac586e7cb457d905b0d08c"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga9f5e4c6153ac586e7cb457d905b0d08c"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga9f5e4c6153ac586e7cb457d905b0d08c">round</a> (vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:ga9f5e4c6153ac586e7cb457d905b0d08c"><td class="mdescLeft"> </td><td class="mdescRight">Returns a value equal to the nearest integer to x. <a href="a00148.html#ga9f5e4c6153ac586e7cb457d905b0d08c">More...</a><br /></td></tr>
|
|
<tr class="separator:ga9f5e4c6153ac586e7cb457d905b0d08c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga824e87ff6060dc06d9cf58d84ecd1187"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga824e87ff6060dc06d9cf58d84ecd1187"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga824e87ff6060dc06d9cf58d84ecd1187">roundEven</a> (vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:ga824e87ff6060dc06d9cf58d84ecd1187"><td class="mdescLeft"> </td><td class="mdescRight">Returns a value equal to the nearest integer to x. <a href="a00148.html#ga824e87ff6060dc06d9cf58d84ecd1187">More...</a><br /></td></tr>
|
|
<tr class="separator:ga824e87ff6060dc06d9cf58d84ecd1187"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga62933815c9d7ea5507441856fa802c94"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga62933815c9d7ea5507441856fa802c94"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga62933815c9d7ea5507441856fa802c94">sign</a> (vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:ga62933815c9d7ea5507441856fa802c94"><td class="mdescLeft"> </td><td class="mdescRight">Returns 1.0 if x > 0, 0.0 if x == 0, or -1.0 if x < 0. <a href="a00148.html#ga62933815c9d7ea5507441856fa802c94">More...</a><br /></td></tr>
|
|
<tr class="separator:ga62933815c9d7ea5507441856fa802c94"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga562edf7eca082cc5b7a0aaf180436daf"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr class="memitem:ga562edf7eca082cc5b7a0aaf180436daf"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga562edf7eca082cc5b7a0aaf180436daf">smoothstep</a> (genType edge0, genType edge1, genType x)</td></tr>
|
|
<tr class="memdesc:ga562edf7eca082cc5b7a0aaf180436daf"><td class="mdescLeft"> </td><td class="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. <a href="a00148.html#ga562edf7eca082cc5b7a0aaf180436daf">More...</a><br /></td></tr>
|
|
<tr class="separator:ga562edf7eca082cc5b7a0aaf180436daf"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga015a1261ff23e12650211aa872863cce"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr class="memitem:ga015a1261ff23e12650211aa872863cce"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga015a1261ff23e12650211aa872863cce">step</a> (genType edge, genType x)</td></tr>
|
|
<tr class="memdesc:ga015a1261ff23e12650211aa872863cce"><td class="mdescLeft"> </td><td class="mdescRight">Returns 0.0 if x < edge, otherwise it returns 1.0 for each component of a genType. <a href="a00148.html#ga015a1261ff23e12650211aa872863cce">More...</a><br /></td></tr>
|
|
<tr class="separator:ga015a1261ff23e12650211aa872863cce"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gacc503b27d51eea01a065f80c69f0a268"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gacc503b27d51eea01a065f80c69f0a268"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#gacc503b27d51eea01a065f80c69f0a268">step</a> (T edge, vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:gacc503b27d51eea01a065f80c69f0a268"><td class="mdescLeft"> </td><td class="mdescRight">Returns 0.0 if x < edge, otherwise it returns 1.0. <a href="a00148.html#gacc503b27d51eea01a065f80c69f0a268">More...</a><br /></td></tr>
|
|
<tr class="separator:gacc503b27d51eea01a065f80c69f0a268"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0ae969e5f5124844affd1dc58b1dee10"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga0ae969e5f5124844affd1dc58b1dee10"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga0ae969e5f5124844affd1dc58b1dee10">step</a> (vec< L, T, P > const &edge, vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:ga0ae969e5f5124844affd1dc58b1dee10"><td class="mdescLeft"> </td><td class="mdescRight">Returns 0.0 if x < edge, otherwise it returns 1.0. <a href="a00148.html#ga0ae969e5f5124844affd1dc58b1dee10">More...</a><br /></td></tr>
|
|
<tr class="separator:ga0ae969e5f5124844affd1dc58b1dee10"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga565dd97ec9a1b00b6ba357b99720dd68"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga565dd97ec9a1b00b6ba357b99720dd68"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga565dd97ec9a1b00b6ba357b99720dd68">trunc</a> (vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:ga565dd97ec9a1b00b6ba357b99720dd68"><td class="mdescLeft"> </td><td class="mdescRight">Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolute value of x. <a href="a00148.html#ga565dd97ec9a1b00b6ba357b99720dd68">More...</a><br /></td></tr>
|
|
<tr class="separator:ga565dd97ec9a1b00b6ba357b99720dd68"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab2bae0d15dcdca6093f88f76b3975d97"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float </td><td class="memItemRight" valign="bottom"><a class="el" href="a00148.html#gab2bae0d15dcdca6093f88f76b3975d97">uintBitsToFloat</a> (uint const &v)</td></tr>
|
|
<tr class="memdesc:gab2bae0d15dcdca6093f88f76b3975d97"><td class="mdescLeft"> </td><td class="mdescRight">Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value. <a href="a00148.html#gab2bae0d15dcdca6093f88f76b3975d97">More...</a><br /></td></tr>
|
|
<tr class="separator:gab2bae0d15dcdca6093f88f76b3975d97"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga24443458c4317244360d7c87e38ff744"><td class="memTemplParams" colspan="2">template<length_t L, qualifier P> </td></tr>
|
|
<tr class="memitem:ga24443458c4317244360d7c87e38ff744"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, float, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ga24443458c4317244360d7c87e38ff744">uintBitsToFloat</a> (vec< L, uint, P > const &v)</td></tr>
|
|
<tr class="memdesc:ga24443458c4317244360d7c87e38ff744"><td class="mdescLeft"> </td><td class="mdescRight">Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value. <a href="a00148.html#ga24443458c4317244360d7c87e38ff744">More...</a><br /></td></tr>
|
|
<tr class="separator:ga24443458c4317244360d7c87e38ff744"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p><a class="el" href="a00158.html">GLM Core</a> </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
|
|
|
|
<p>Definition in file <a class="el" href="a00032_source.html">func_common.hpp</a>.</p>
|
|
</div></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.10
|
|
</small></address>
|
|
</body>
|
|
</html>
|