mirror of
https://github.com/g-truc/glm.git
synced 2024-11-23 01:14:34 +00:00
656 lines
34 KiB
HTML
656 lines
34 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: GLM_GTC_round</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><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><!-- top -->
|
|
<!-- 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 class="header">
|
|
<div class="summary">
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">GLM_GTC_round<div class="ingroups"><a class="el" href="a00156.html">GTC Extensions (Stable)</a></div></div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>rounding value to specific boundings
|
|
<a href="#details">More...</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:gac84898c466e609cdd2e81d9ba907d9e8"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr class="memitem:gac84898c466e609cdd2e81d9ba907d9e8"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#gac84898c466e609cdd2e81d9ba907d9e8">ceilMultiple</a> (genType Source, genType Multiple)</td></tr>
|
|
<tr class="memdesc:gac84898c466e609cdd2e81d9ba907d9e8"><td class="mdescLeft"> </td><td class="mdescRight">Higher multiple number of Source. <a href="a00177.html#gac84898c466e609cdd2e81d9ba907d9e8">More...</a><br /></td></tr>
|
|
<tr class="separator:gac84898c466e609cdd2e81d9ba907d9e8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gad45973192fb6a37fc2ac4a4d11f50ed7"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gad45973192fb6a37fc2ac4a4d11f50ed7"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#gad45973192fb6a37fc2ac4a4d11f50ed7">ceilMultiple</a> (vec< L, T, P > const &Source, vec< L, T, P > const &Multiple)</td></tr>
|
|
<tr class="memdesc:gad45973192fb6a37fc2ac4a4d11f50ed7"><td class="mdescLeft"> </td><td class="mdescRight">Higher multiple number of Source. <a href="a00177.html#gad45973192fb6a37fc2ac4a4d11f50ed7">More...</a><br /></td></tr>
|
|
<tr class="separator:gad45973192fb6a37fc2ac4a4d11f50ed7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa73c7690c787086fa3ac1c312264acab"><td class="memTemplParams" colspan="2">template<typename genIUType > </td></tr>
|
|
<tr class="memitem:gaa73c7690c787086fa3ac1c312264acab"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genIUType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#gaa73c7690c787086fa3ac1c312264acab">ceilPowerOfTwo</a> (genIUType Value)</td></tr>
|
|
<tr class="memdesc:gaa73c7690c787086fa3ac1c312264acab"><td class="mdescLeft"> </td><td class="mdescRight">Return the power of two number which value is just higher the input value, round up to a power of two. <a href="a00177.html#gaa73c7690c787086fa3ac1c312264acab">More...</a><br /></td></tr>
|
|
<tr class="separator:gaa73c7690c787086fa3ac1c312264acab"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab96d6621f379126ac9e94619d72fb3c2"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gab96d6621f379126ac9e94619d72fb3c2"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#gab96d6621f379126ac9e94619d72fb3c2">ceilPowerOfTwo</a> (vec< L, T, P > const &value)</td></tr>
|
|
<tr class="memdesc:gab96d6621f379126ac9e94619d72fb3c2"><td class="mdescLeft"> </td><td class="mdescRight">Return the power of two number which value is just higher the input value, round up to a power of two. <a href="a00177.html#gab96d6621f379126ac9e94619d72fb3c2">More...</a><br /></td></tr>
|
|
<tr class="separator:gab96d6621f379126ac9e94619d72fb3c2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga9eafb9dbedf84e5cece65c2fe9d5631d"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr class="memitem:ga9eafb9dbedf84e5cece65c2fe9d5631d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#ga9eafb9dbedf84e5cece65c2fe9d5631d">floorMultiple</a> (genType Source, genType Multiple)</td></tr>
|
|
<tr class="memdesc:ga9eafb9dbedf84e5cece65c2fe9d5631d"><td class="mdescLeft"> </td><td class="mdescRight">Lower multiple number of Source. <a href="a00177.html#ga9eafb9dbedf84e5cece65c2fe9d5631d">More...</a><br /></td></tr>
|
|
<tr class="separator:ga9eafb9dbedf84e5cece65c2fe9d5631d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga82343a05a66184e3a2e33f514e5980c9"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga82343a05a66184e3a2e33f514e5980c9"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#ga82343a05a66184e3a2e33f514e5980c9">floorMultiple</a> (vec< L, T, P > const &Source, vec< L, T, P > const &Multiple)</td></tr>
|
|
<tr class="memdesc:ga82343a05a66184e3a2e33f514e5980c9"><td class="mdescLeft"> </td><td class="mdescRight">Lower multiple number of Source. <a href="a00177.html#ga82343a05a66184e3a2e33f514e5980c9">More...</a><br /></td></tr>
|
|
<tr class="separator:ga82343a05a66184e3a2e33f514e5980c9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac80f6519c31baae10d8d7bea6735d1fa"><td class="memTemplParams" colspan="2">template<typename genIUType > </td></tr>
|
|
<tr class="memitem:gac80f6519c31baae10d8d7bea6735d1fa"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genIUType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#gac80f6519c31baae10d8d7bea6735d1fa">floorPowerOfTwo</a> (genIUType Value)</td></tr>
|
|
<tr class="memdesc:gac80f6519c31baae10d8d7bea6735d1fa"><td class="mdescLeft"> </td><td class="mdescRight">Return the power of two number which value is just lower the input value, round down to a power of two. <a href="a00177.html#gac80f6519c31baae10d8d7bea6735d1fa">More...</a><br /></td></tr>
|
|
<tr class="separator:gac80f6519c31baae10d8d7bea6735d1fa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gadcd07cdcbd366b917d147073633b0094"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gadcd07cdcbd366b917d147073633b0094"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#gadcd07cdcbd366b917d147073633b0094">floorPowerOfTwo</a> (vec< L, T, P > const &value)</td></tr>
|
|
<tr class="memdesc:gadcd07cdcbd366b917d147073633b0094"><td class="mdescLeft"> </td><td class="mdescRight">Return the power of two number which value is just lower the input value, round down to a power of two. <a href="a00177.html#gadcd07cdcbd366b917d147073633b0094">More...</a><br /></td></tr>
|
|
<tr class="separator:gadcd07cdcbd366b917d147073633b0094"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaf7444a7b2eb524f373463ceba76b9326"><td class="memTemplParams" colspan="2">template<typename genIUType > </td></tr>
|
|
<tr class="memitem:gaf7444a7b2eb524f373463ceba76b9326"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#gaf7444a7b2eb524f373463ceba76b9326">isMultiple</a> (genIUType Value, genIUType Multiple)</td></tr>
|
|
<tr class="memdesc:gaf7444a7b2eb524f373463ceba76b9326"><td class="mdescLeft"> </td><td class="mdescRight">Return true if the 'Value' is a multiple of 'Multiple'. <a href="a00177.html#gaf7444a7b2eb524f373463ceba76b9326">More...</a><br /></td></tr>
|
|
<tr class="separator:gaf7444a7b2eb524f373463ceba76b9326"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga01d49b7af4985cd4e58e137132fe9541"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga01d49b7af4985cd4e58e137132fe9541"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, bool, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#ga01d49b7af4985cd4e58e137132fe9541">isMultiple</a> (vec< L, T, P > const &Value, T Multiple)</td></tr>
|
|
<tr class="memdesc:ga01d49b7af4985cd4e58e137132fe9541"><td class="mdescLeft"> </td><td class="mdescRight">Return true if the 'Value' is a multiple of 'Multiple'. <a href="a00177.html#ga01d49b7af4985cd4e58e137132fe9541">More...</a><br /></td></tr>
|
|
<tr class="separator:ga01d49b7af4985cd4e58e137132fe9541"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac8f2fac09b70d2132d83c9026ce8a1c4"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gac8f2fac09b70d2132d83c9026ce8a1c4"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, bool, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#gac8f2fac09b70d2132d83c9026ce8a1c4">isMultiple</a> (vec< L, T, P > const &Value, vec< L, T, P > const &Multiple)</td></tr>
|
|
<tr class="memdesc:gac8f2fac09b70d2132d83c9026ce8a1c4"><td class="mdescLeft"> </td><td class="mdescRight">Return true if the 'Value' is a multiple of 'Multiple'. <a href="a00177.html#gac8f2fac09b70d2132d83c9026ce8a1c4">More...</a><br /></td></tr>
|
|
<tr class="separator:gac8f2fac09b70d2132d83c9026ce8a1c4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaebf826fbb6e0a70eeaab0792d89b25ec"><td class="memTemplParams" colspan="2">template<typename genIUType > </td></tr>
|
|
<tr class="memitem:gaebf826fbb6e0a70eeaab0792d89b25ec"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#gaebf826fbb6e0a70eeaab0792d89b25ec">isPowerOfTwo</a> (genIUType Value)</td></tr>
|
|
<tr class="memdesc:gaebf826fbb6e0a70eeaab0792d89b25ec"><td class="mdescLeft"> </td><td class="mdescRight">Return true if the value is a power of two number. <a href="a00177.html#gaebf826fbb6e0a70eeaab0792d89b25ec">More...</a><br /></td></tr>
|
|
<tr class="separator:gaebf826fbb6e0a70eeaab0792d89b25ec"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga54a1f4178f145dc57239732473421f2c"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga54a1f4178f145dc57239732473421f2c"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, bool, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#ga54a1f4178f145dc57239732473421f2c">isPowerOfTwo</a> (vec< L, T, P > const &value)</td></tr>
|
|
<tr class="memdesc:ga54a1f4178f145dc57239732473421f2c"><td class="mdescLeft"> </td><td class="mdescRight">Return true if the value is a power of two number. <a href="a00177.html#ga54a1f4178f145dc57239732473421f2c">More...</a><br /></td></tr>
|
|
<tr class="separator:ga54a1f4178f145dc57239732473421f2c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6739d1de04b2cea7c78675b365644bce"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr class="memitem:ga6739d1de04b2cea7c78675b365644bce"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#ga6739d1de04b2cea7c78675b365644bce">roundMultiple</a> (genType Source, genType Multiple)</td></tr>
|
|
<tr class="memdesc:ga6739d1de04b2cea7c78675b365644bce"><td class="mdescLeft"> </td><td class="mdescRight">Lower multiple number of Source. <a href="a00177.html#ga6739d1de04b2cea7c78675b365644bce">More...</a><br /></td></tr>
|
|
<tr class="separator:ga6739d1de04b2cea7c78675b365644bce"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga60f4ac8add99642616c4c49f128bd718"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga60f4ac8add99642616c4c49f128bd718"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#ga60f4ac8add99642616c4c49f128bd718">roundMultiple</a> (vec< L, T, P > const &Source, vec< L, T, P > const &Multiple)</td></tr>
|
|
<tr class="memdesc:ga60f4ac8add99642616c4c49f128bd718"><td class="mdescLeft"> </td><td class="mdescRight">Lower multiple number of Source. <a href="a00177.html#ga60f4ac8add99642616c4c49f128bd718">More...</a><br /></td></tr>
|
|
<tr class="separator:ga60f4ac8add99642616c4c49f128bd718"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6d24a9e3abe3e6a908661b43acb8efe0"><td class="memTemplParams" colspan="2">template<typename genIUType > </td></tr>
|
|
<tr class="memitem:ga6d24a9e3abe3e6a908661b43acb8efe0"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genIUType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#ga6d24a9e3abe3e6a908661b43acb8efe0">roundPowerOfTwo</a> (genIUType Value)</td></tr>
|
|
<tr class="memdesc:ga6d24a9e3abe3e6a908661b43acb8efe0"><td class="mdescLeft"> </td><td class="mdescRight">Return the power of two number which value is the closet to the input value. <a href="a00177.html#ga6d24a9e3abe3e6a908661b43acb8efe0">More...</a><br /></td></tr>
|
|
<tr class="separator:ga6d24a9e3abe3e6a908661b43acb8efe0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga74eabb74ece6a03e9c0347a1cf6a045d"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga74eabb74ece6a03e9c0347a1cf6a045d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00177.html#ga74eabb74ece6a03e9c0347a1cf6a045d">roundPowerOfTwo</a> (vec< L, T, P > const &value)</td></tr>
|
|
<tr class="memdesc:ga74eabb74ece6a03e9c0347a1cf6a045d"><td class="mdescLeft"> </td><td class="mdescRight">Return the power of two number which value is the closet to the input value. <a href="a00177.html#ga74eabb74ece6a03e9c0347a1cf6a045d">More...</a><br /></td></tr>
|
|
<tr class="separator:ga74eabb74ece6a03e9c0347a1cf6a045d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<p>rounding value to specific boundings </p>
|
|
<p><<a class="el" href="a00099.html" title="GLM_GTC_round ">glm/gtc/round.hpp</a>> need to be included to use these functionalities. </p>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a class="anchor" id="gac84898c466e609cdd2e81d9ba907d9e8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL genType glm::ceilMultiple </td>
|
|
<td>(</td>
|
|
<td class="paramtype">genType </td>
|
|
<td class="paramname"><em>Source</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">genType </td>
|
|
<td class="paramname"><em>Multiple</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Higher multiple number of Source. </p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">genType</td><td>Floating-point or integer scalar or vector types. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">Multiple</td><td>Must be a null or positive value</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gad45973192fb6a37fc2ac4a4d11f50ed7"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::ceilMultiple </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>Source</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>Multiple</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Higher multiple number of Source. </p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">genType</td><td>Floating-point or integer scalar or vector types. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">Multiple</td><td>Must be a null or positive value</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaa73c7690c787086fa3ac1c312264acab"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL genIUType glm::ceilPowerOfTwo </td>
|
|
<td>(</td>
|
|
<td class="paramtype">genIUType </td>
|
|
<td class="paramname"><em>Value</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return the power of two number which value is just higher the input value, round up to a power of two. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gab96d6621f379126ac9e94619d72fb3c2"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::ceilPowerOfTwo </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>value</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return the power of two number which value is just higher the input value, round up to a power of two. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga9eafb9dbedf84e5cece65c2fe9d5631d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL genType glm::floorMultiple </td>
|
|
<td>(</td>
|
|
<td class="paramtype">genType </td>
|
|
<td class="paramname"><em>Source</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">genType </td>
|
|
<td class="paramname"><em>Multiple</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Lower multiple number of Source. </p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">genType</td><td>Floating-point or integer scalar or vector types. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">Multiple</td><td>Must be a null or positive value</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga82343a05a66184e3a2e33f514e5980c9"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::floorMultiple </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>Source</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>Multiple</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Lower multiple number of Source. </p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">genType</td><td>Floating-point or integer scalar or vector types. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">Multiple</td><td>Must be a null or positive value</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gac80f6519c31baae10d8d7bea6735d1fa"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL genIUType glm::floorPowerOfTwo </td>
|
|
<td>(</td>
|
|
<td class="paramtype">genIUType </td>
|
|
<td class="paramname"><em>Value</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return the power of two number which value is just lower the input value, round down to a power of two. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gadcd07cdcbd366b917d147073633b0094"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::floorPowerOfTwo </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>value</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return the power of two number which value is just lower the input value, round down to a power of two. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaf7444a7b2eb524f373463ceba76b9326"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL bool glm::isMultiple </td>
|
|
<td>(</td>
|
|
<td class="paramtype">genIUType </td>
|
|
<td class="paramname"><em>Value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">genIUType </td>
|
|
<td class="paramname"><em>Multiple</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return true if the 'Value' is a multiple of 'Multiple'. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga01d49b7af4985cd4e58e137132fe9541"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, bool, P> glm::isMultiple </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>Value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">T </td>
|
|
<td class="paramname"><em>Multiple</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return true if the 'Value' is a multiple of 'Multiple'. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gac8f2fac09b70d2132d83c9026ce8a1c4"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, bool, P> glm::isMultiple </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>Value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>Multiple</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return true if the 'Value' is a multiple of 'Multiple'. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaebf826fbb6e0a70eeaab0792d89b25ec"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL bool glm::isPowerOfTwo </td>
|
|
<td>(</td>
|
|
<td class="paramtype">genIUType </td>
|
|
<td class="paramname"><em>Value</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return true if the value is a power of two number. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga54a1f4178f145dc57239732473421f2c"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, bool, P> glm::isPowerOfTwo </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>value</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return true if the value is a power of two number. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga6739d1de04b2cea7c78675b365644bce"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL genType glm::roundMultiple </td>
|
|
<td>(</td>
|
|
<td class="paramtype">genType </td>
|
|
<td class="paramname"><em>Source</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">genType </td>
|
|
<td class="paramname"><em>Multiple</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Lower multiple number of Source. </p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">genType</td><td>Floating-point or integer scalar or vector types. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">Multiple</td><td>Must be a null or positive value</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga60f4ac8add99642616c4c49f128bd718"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::roundMultiple </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>Source</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>Multiple</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Lower multiple number of Source. </p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">genType</td><td>Floating-point or integer scalar or vector types. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">Multiple</td><td>Must be a null or positive value</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga6d24a9e3abe3e6a908661b43acb8efe0"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL genIUType glm::roundPowerOfTwo </td>
|
|
<td>(</td>
|
|
<td class="paramtype">genIUType </td>
|
|
<td class="paramname"><em>Value</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return the power of two number which value is the closet to the input value. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga74eabb74ece6a03e9c0347a1cf6a045d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::roundPowerOfTwo </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>value</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return the power of two number which value is the closet to the input value. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00177.html" title="rounding value to specific boundings ">GLM_GTC_round</a> </dd></dl>
|
|
|
|
</div>
|
|
</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>
|