mirror of https://github.com/g-truc/glm.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
12 KiB
HTML
125 lines
12 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.18"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>1.0.0 API documentation: vector_ulp.hpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="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>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="logo-mini.png"/></td>
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">1.0.0 API documentation
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.18 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></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_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_63ed049134a778d525e06b63afc2c979.html">Github</a></li><li class="navelem"><a class="el" href="dir_c98a9ac98258ab9f831b188d66361a70.html">g-truc</a></li><li class="navelem"><a class="el" href="dir_50f12b6ceb23d7f6adfb377a1ae8b006.html">glm</a></li><li class="navelem"><a class="el" href="dir_fca33f1b5115d46f42c670590789c0d2.html">glm</a></li><li class="navelem"><a class="el" href="dir_b171cecbb853a9ee4caace490047c53f.html">ext</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">vector_ulp.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="a00515.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>  </div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">// Dependencies</span></div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "../ext/scalar_ulp.hpp"</span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  </div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)</span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor"># pragma message("GLM: GLM_EXT_vector_ulp extension included")</span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">namespace </span>glm</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> {</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier Q></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="a00887.html#gadbd6e5dff9c0ae4567b3edd9019c1bee"> 39</a></span>  GLM_FUNC_DECL vec<L, T, Q> <a class="code" href="a00887.html#ga48e9b73c50fcf589e0032b8dbed9a3f9">nextFloat</a>(vec<L, T, Q> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier Q></div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="a00887.html#ga92f82c4f45b5b43ccc29533990db079d"> 49</a></span>  GLM_FUNC_DECL vec<L, T, Q> <a class="code" href="a00887.html#ga48e9b73c50fcf589e0032b8dbed9a3f9">nextFloat</a>(vec<L, T, Q> <span class="keyword">const</span>& x, <span class="keywordtype">int</span> ULPs);</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  </div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier Q></div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="a00887.html#ga48e9b73c50fcf589e0032b8dbed9a3f9"> 59</a></span>  GLM_FUNC_DECL vec<L, T, Q> <a class="code" href="a00887.html#ga48e9b73c50fcf589e0032b8dbed9a3f9">nextFloat</a>(vec<L, T, Q> <span class="keyword">const</span>& x, vec<L, int, Q> <span class="keyword">const</span>& ULPs);</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  </div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier Q></div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="a00887.html#ga82d4ce132256c1a70d0e7100e6eae2e1"> 69</a></span>  GLM_FUNC_DECL vec<L, T, Q> <a class="code" href="a00887.html#ga569e3ce6771e1e4f9e425ec6d859d9f9">prevFloat</a>(vec<L, T, Q> <span class="keyword">const</span>& x);</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier Q></div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="a00887.html#ga4ab818050036d40994346defe41a05b9"> 79</a></span>  GLM_FUNC_DECL vec<L, T, Q> <a class="code" href="a00887.html#ga569e3ce6771e1e4f9e425ec6d859d9f9">prevFloat</a>(vec<L, T, Q> <span class="keyword">const</span>& x, <span class="keywordtype">int</span> ULPs);</div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  </div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier Q></div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="a00887.html#ga569e3ce6771e1e4f9e425ec6d859d9f9"> 89</a></span>  GLM_FUNC_DECL vec<L, T, Q> <a class="code" href="a00887.html#ga569e3ce6771e1e4f9e425ec6d859d9f9">prevFloat</a>(vec<L, T, Q> <span class="keyword">const</span>& x, vec<L, int, Q> <span class="keyword">const</span>& ULPs);</div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  </div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier Q></div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="a00887.html#ga03f464c6a03a725ea18e72cf1ed31417"> 98</a></span>  GLM_FUNC_DECL vec<L, int, Q> <a class="code" href="a00887.html#gabe2040cbbe66a60cafb37f6155f78e4c">floatDistance</a>(vec<L, float, Q> <span class="keyword">const</span>& x, vec<L, float, Q> <span class="keyword">const</span>& y);</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  </div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keyword">template</span><length_t L, <span class="keyword">typename</span> T, qualifier Q></div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="a00887.html#gabe2040cbbe66a60cafb37f6155f78e4c"> 107</a></span>  GLM_FUNC_DECL vec<L, int64, Q> <a class="code" href="a00887.html#gabe2040cbbe66a60cafb37f6155f78e4c">floatDistance</a>(vec<L, double, Q> <span class="keyword">const</span>& x, vec<L, double, Q> <span class="keyword">const</span>& y);</div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> }<span class="comment">//namespace glm</span></div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  </div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="preprocessor">#include "vector_ulp.inl"</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<div class="ttc" id="aa00887_html_ga48e9b73c50fcf589e0032b8dbed9a3f9"><div class="ttname"><a href="a00887.html#ga48e9b73c50fcf589e0032b8dbed9a3f9">glm::nextFloat</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, Q > nextFloat(vec< L, T, Q > const &x, vec< L, int, Q > const &ULPs)</div><div class="ttdoc">Return the value(s) ULP distance after the input value(s).</div></div>
|
|
<div class="ttc" id="aa00887_html_ga569e3ce6771e1e4f9e425ec6d859d9f9"><div class="ttname"><a href="a00887.html#ga569e3ce6771e1e4f9e425ec6d859d9f9">glm::prevFloat</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, T, Q > prevFloat(vec< L, T, Q > const &x, vec< L, int, Q > const &ULPs)</div><div class="ttdoc">Return the value(s) ULP distance before the input value(s).</div></div>
|
|
<div class="ttc" id="aa00887_html_gabe2040cbbe66a60cafb37f6155f78e4c"><div class="ttname"><a href="a00887.html#gabe2040cbbe66a60cafb37f6155f78e4c">glm::floatDistance</a></div><div class="ttdeci">GLM_FUNC_DECL vec< L, int64, Q > floatDistance(vec< L, double, Q > const &x, vec< L, double, Q > const &y)</div><div class="ttdoc">Return the distance in the number of ULP between 2 double-precision floating-point scalars.</div></div>
|
|
<!-- 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.18
|
|
</small></address>
|
|
</body>
|
|
</html>
|