mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-08-31 07:28:48 +00:00
132 lines
11 KiB
HTML
132 lines
11 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.9.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Recast Navigation: DetourMath.h 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="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.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" />
|
|
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen-awesome-sidebar-only.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">Recast Navigation
|
|
</div>
|
|
<div id="projectbrief">Navigation-mesh Toolset for Games</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<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','.html');
|
|
/* @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>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('DetourMath_8h_source.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- 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="headertitle">
|
|
<div class="title">DetourMath.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="DetourMath_8h.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="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#ifndef DETOURMATH_H</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#define DETOURMATH_H</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  </div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <math.h></span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// This include is required because libstdc++ has problems with isfinite</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// if cmath is included before math.h.</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <cmath></span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="DetourMath_8h.html#a2ad54989ede65d69ab7a72a06b99941e"> 15</a></span> <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="DetourMath_8h.html#a2ad54989ede65d69ab7a72a06b99941e">dtMathFabsf</a>(<span class="keywordtype">float</span> x) { <span class="keywordflow">return</span> fabsf(x); }</div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="DetourMath_8h.html#a7d78191f5515fca287061332e9792632"> 16</a></span> <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="DetourMath_8h.html#a7d78191f5515fca287061332e9792632">dtMathSqrtf</a>(<span class="keywordtype">float</span> x) { <span class="keywordflow">return</span> sqrtf(x); }</div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="DetourMath_8h.html#a3969a62f73c241ca665136b5c705be2c"> 17</a></span> <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="DetourMath_8h.html#a3969a62f73c241ca665136b5c705be2c">dtMathFloorf</a>(<span class="keywordtype">float</span> x) { <span class="keywordflow">return</span> floorf(x); }</div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="DetourMath_8h.html#aa4a2945349a192a21dd0d9b8d66929d8"> 18</a></span> <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="DetourMath_8h.html#aa4a2945349a192a21dd0d9b8d66929d8">dtMathCeilf</a>(<span class="keywordtype">float</span> x) { <span class="keywordflow">return</span> ceilf(x); }</div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="DetourMath_8h.html#acfd5b167b14008287b6bc277c8d8d63f"> 19</a></span> <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="DetourMath_8h.html#acfd5b167b14008287b6bc277c8d8d63f">dtMathCosf</a>(<span class="keywordtype">float</span> x) { <span class="keywordflow">return</span> cosf(x); }</div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="DetourMath_8h.html#a79b7b16693ad3fed887aa65c1207724d"> 20</a></span> <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="DetourMath_8h.html#a79b7b16693ad3fed887aa65c1207724d">dtMathSinf</a>(<span class="keywordtype">float</span> x) { <span class="keywordflow">return</span> sinf(x); }</div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="DetourMath_8h.html#a292378604b8f33cb144e143f9d33a2e4"> 21</a></span> <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="DetourMath_8h.html#a292378604b8f33cb144e143f9d33a2e4">dtMathAtan2f</a>(<span class="keywordtype">float</span> y, <span class="keywordtype">float</span> x) { <span class="keywordflow">return</span> atan2f(y, x); }</div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="DetourMath_8h.html#aada58cd45766fc2aa5c722315d5ba04c"> 22</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="DetourMath_8h.html#aada58cd45766fc2aa5c722315d5ba04c">dtMathIsfinite</a>(<span class="keywordtype">float</span> x) { <span class="keywordflow">return</span> std::isfinite(x); }</div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="ttc" id="aDetourMath_8h_html_a292378604b8f33cb144e143f9d33a2e4"><div class="ttname"><a href="DetourMath_8h.html#a292378604b8f33cb144e143f9d33a2e4">dtMathAtan2f</a></div><div class="ttdeci">float dtMathAtan2f(float y, float x)</div><div class="ttdef"><b>Definition:</b> DetourMath.h:21</div></div>
|
|
<div class="ttc" id="aDetourMath_8h_html_a2ad54989ede65d69ab7a72a06b99941e"><div class="ttname"><a href="DetourMath_8h.html#a2ad54989ede65d69ab7a72a06b99941e">dtMathFabsf</a></div><div class="ttdeci">float dtMathFabsf(float x)</div><div class="ttdef"><b>Definition:</b> DetourMath.h:15</div></div>
|
|
<div class="ttc" id="aDetourMath_8h_html_a3969a62f73c241ca665136b5c705be2c"><div class="ttname"><a href="DetourMath_8h.html#a3969a62f73c241ca665136b5c705be2c">dtMathFloorf</a></div><div class="ttdeci">float dtMathFloorf(float x)</div><div class="ttdef"><b>Definition:</b> DetourMath.h:17</div></div>
|
|
<div class="ttc" id="aDetourMath_8h_html_a79b7b16693ad3fed887aa65c1207724d"><div class="ttname"><a href="DetourMath_8h.html#a79b7b16693ad3fed887aa65c1207724d">dtMathSinf</a></div><div class="ttdeci">float dtMathSinf(float x)</div><div class="ttdef"><b>Definition:</b> DetourMath.h:20</div></div>
|
|
<div class="ttc" id="aDetourMath_8h_html_a7d78191f5515fca287061332e9792632"><div class="ttname"><a href="DetourMath_8h.html#a7d78191f5515fca287061332e9792632">dtMathSqrtf</a></div><div class="ttdeci">float dtMathSqrtf(float x)</div><div class="ttdef"><b>Definition:</b> DetourMath.h:16</div></div>
|
|
<div class="ttc" id="aDetourMath_8h_html_aa4a2945349a192a21dd0d9b8d66929d8"><div class="ttname"><a href="DetourMath_8h.html#aa4a2945349a192a21dd0d9b8d66929d8">dtMathCeilf</a></div><div class="ttdeci">float dtMathCeilf(float x)</div><div class="ttdef"><b>Definition:</b> DetourMath.h:18</div></div>
|
|
<div class="ttc" id="aDetourMath_8h_html_aada58cd45766fc2aa5c722315d5ba04c"><div class="ttname"><a href="DetourMath_8h.html#aada58cd45766fc2aa5c722315d5ba04c">dtMathIsfinite</a></div><div class="ttdeci">bool dtMathIsfinite(float x)</div><div class="ttdef"><b>Definition:</b> DetourMath.h:22</div></div>
|
|
<div class="ttc" id="aDetourMath_8h_html_acfd5b167b14008287b6bc277c8d8d63f"><div class="ttname"><a href="DetourMath_8h.html#acfd5b167b14008287b6bc277c8d8d63f">dtMathCosf</a></div><div class="ttdeci">float dtMathCosf(float x)</div><div class="ttdef"><b>Definition:</b> DetourMath.h:19</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- HTML footer for doxygen 1.8.6-->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_49bbc5a28a7ee729bdecc682ba5a63c9.html">Detour</a></li><li class="navelem"><a class="el" href="dir_97c6bac6df0065e0578eb2a70aa0bb50.html">Include</a></li><li class="navelem"><a class="el" href="DetourMath_8h.html">DetourMath.h</a></li>
|
|
<a href="https://github.com/recastnavigation/recastnavigation">Project Home</a>
|
|
| <a href="./License.txt">Licence (ZLib)</a>
|
|
| Copyright 2009 Mikko Mononen
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|