SpaghettiKart/EditorMath_8h_source.html

211 lines
29 KiB
HTML

<!-- HTML header for doxygen 1.10.0-->
<!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" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Mario Kart 64: src/engine/editor/EditorMath.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>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.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"/>
<link href="doxygen-awesome-sidebar-only-darkmode-toggle.css" rel="stylesheet" type="text/css"/>
<link href="docs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="doxygen-awesome-darkmode-toggle.js"></script>
<script type="text/javascript">
DoxygenAwesomeDarkModeToggle.init()
</script>
</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 id="projectrow">
<td id="projectalign">
<div id="projectname">Mario Kart 64
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search',true);
$(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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('EditorMath_8h_source.html',''); initResizable(true); });
/* @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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">EditorMath.h</div></div>
</div><!--header-->
<div class="contents">
<a href="EditorMath_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#include &lt;libultraship/libultraship.h&gt;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include &lt;libultra/gbi.h&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include &lt;libultra/types.h&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include &quot;<a class="code" href="CoreMath_8h.html">../CoreMath.h</a>&quot;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include &quot;<a class="code" href="GameObject_8h.html">GameObject.h</a>&quot;</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include &lt;fast/Fast3dWindow.h&gt;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include &lt;fast/interpreter.h&gt;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#include &quot;<a class="code" href="common__structs_8h.html">common_structs.h</a>&quot;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span>}</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="keyword">extern</span> std::vector&lt;Mtx&gt; <a class="code hl_variable" href="EditorMath_8cpp.html#a1179dcc97ed416bba1cfb00506b4bacb">EditorMatrix</a>;</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
<div class="foldopen" id="foldopen00018" data-start="{" data-end="};">
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="structRay.html"> 18</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structRay.html">Ray</a> {</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="structRay.html#a80b34482481bc9f87e0201974db3bb55"> 19</a></span> <a class="code hl_struct" href="structFVector.html">FVector</a> <a class="code hl_variable" href="structRay.html#a80b34482481bc9f87e0201974db3bb55">Origin</a>;</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="structRay.html#a64d5e3df9c043edcf8bf970ae1608084"> 20</a></span> <a class="code hl_struct" href="structFVector.html">FVector</a> <a class="code hl_variable" href="structRay.html#a64d5e3df9c043edcf8bf970ae1608084">Direction</a>;</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span>};</div>
</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="foldopen" id="foldopen00023" data-start="{" data-end="};">
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="structTriangle.html"> 23</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structTriangle.html">Triangle</a> {</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="structTriangle.html#aacdd556064e8069804edeadaca5f7e1c"> 24</a></span> <a class="code hl_struct" href="structFVector.html">FVector</a> <a class="code hl_variable" href="structTriangle.html#aacdd556064e8069804edeadaca5f7e1c">v0</a>, <a class="code hl_variable" href="structTriangle.html#a7767fe7777ebd652687c28c6e44238c9">v1</a>, <a class="code hl_variable" href="structTriangle.html#a1ec25363fee520bf2daa68764ac0abae">v2</a>;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span>};</div>
</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="keywordtype">bool</span> <a class="code hl_function" href="EditorMath_8h.html#ad7f685de0e3bbdd0d64410d65add84d5">IsInGameScreen</a>();</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><a class="code hl_struct" href="structFVector.html">FVector</a> <a class="code hl_function" href="EditorMath_8h.html#a2c886dcf27cddd6d4ccb5803eb9cc1df">ScreenRayTrace</a>();</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="keywordtype">bool</span> <a class="code hl_function" href="EditorMath_8h.html#a82e86dde49d8ab0f5459934034270713">QueryCollisionRayActor</a>(<a class="code hl_typedef" href="common__structs_8h.html#a5290523279339ea495248ab3a36cb46e">Vec3f</a> rayOrigin, <a class="code hl_typedef" href="common__structs_8h.html#a5290523279339ea495248ab3a36cb46e">Vec3f</a> rayDir, <a class="code hl_typedef" href="common__structs_8h.html#a5290523279339ea495248ab3a36cb46e">Vec3f</a> actorMin, <a class="code hl_typedef" href="common__structs_8h.html#a5290523279339ea495248ab3a36cb46e">Vec3f</a> actorMax, <span class="keywordtype">float</span>* t);</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span><a class="code hl_struct" href="structFVector4.html">FVector4</a> <a class="code hl_function" href="EditorMath_8h.html#a0bb1d0a9fb3649c90cab9dde2ae82ebd">MultiplyMatrixVector</a>(<span class="keywordtype">float</span> matrix[4][4], <span class="keywordtype">float</span> vector[4]);</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="EditorMath_8h.html#a337de2cb19f9c542c8fff536d125899c"> 40</a></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="EditorMath_8h.html#a337de2cb19f9c542c8fff536d125899c">InverseMatrix</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> m[16], <span class="keywordtype">float</span> invOut[16]);</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="EditorMath_8h.html#ab214e16f2975deed27a80057b08125aa"> 41</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="EditorMath_8h.html#ab214e16f2975deed27a80057b08125aa">Copy</a>(MtxF* src, MtxF* dest);</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="EditorMath_8h.html#a184566c244b6f86ed1728ff62afee2bc"> 42</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="EditorMath_8h.html#a184566c244b6f86ed1728ff62afee2bc">Clear</a>(MtxF* mf);</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><a class="code hl_struct" href="structFVector.html">FVector</a> <a class="code hl_function" href="EditorMath_8h.html#a446de9721f70b65f5c16f69f563373ce">TransformVecByMatrix</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structFVector.html">FVector</a>&amp; vec, <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code hl_variable" href="render__objects_8c.html#aa6d460986556744dc5e412f987bbb803">mtx</a>[4][4]);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span><a class="code hl_struct" href="structFVector.html">FVector</a> <a class="code hl_function" href="EditorMath_8h.html#aca6a2c3de6c78071cfa261ecc5cd342b">TransformVecDirection</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structFVector.html">FVector</a>&amp; dir, <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code hl_variable" href="render__objects_8c.html#aa6d460986556744dc5e412f987bbb803">mtx</a>[4][4]);</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><a class="code hl_struct" href="structRay.html">Ray</a> <a class="code hl_function" href="EditorMath_8h.html#a9c8b5418edb07797a10ec2e8546fba69">RayToLocalSpace</a>(MtxF <a class="code hl_variable" href="render__objects_8c.html#aa6d460986556744dc5e412f987bbb803">mtx</a>, <span class="keyword">const</span> <a class="code hl_struct" href="structRay.html">Ray</a>&amp; ray);</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><span class="keywordtype">bool</span> <a class="code hl_function" href="EditorMath_8h.html#a77a63e1d155375067e4639181ccdafac">IntersectRayTriangle</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structRay.html">Ray</a>&amp; ray, <span class="keyword">const</span> <a class="code hl_struct" href="structTriangle.html">Triangle</a>&amp; tri, <span class="keywordtype">float</span>&amp; t); <span class="comment">// Uses local space not global space.</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span><span class="keywordtype">bool</span> <a class="code hl_function" href="EditorMath_8h.html#ab0a9de936aec5e7e47fe73d35962d9c5">IntersectRayTriangleAndTransform</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structRay.html">Ray</a>&amp; ray, <a class="code hl_struct" href="structFVector.html">FVector</a> pos, <span class="keyword">const</span> <a class="code hl_struct" href="structTriangle.html">Triangle</a>&amp; tri, <span class="keywordtype">float</span>&amp; t); <span class="comment">// Uses global space because no access to mtx</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span><span class="keywordtype">bool</span> <a class="code hl_function" href="EditorMath_8h.html#aa2d521cc03fb83c55e19a96fe28cc5d6">IntersectRaySphere</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structRay.html">Ray</a>&amp; ray, <span class="keyword">const</span> <a class="code hl_struct" href="structFVector.html">FVector</a>&amp; sphereCenter, <span class="keywordtype">float</span> radius, <span class="keywordtype">float</span>&amp; t);</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span>std::optional&lt;FVector&gt; <a class="code hl_function" href="EditorMath_8h.html#a6c07635c069e546e94c1d547af500c8e">QueryHandleIntersection</a>(MtxF <a class="code hl_variable" href="render__objects_8c.html#aa6d460986556744dc5e412f987bbb803">mtx</a>, <a class="code hl_struct" href="structRay.html">Ray</a> ray, <span class="keyword">const</span> <a class="code hl_struct" href="structTriangle.html">Triangle</a>&amp; tri);</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span><span class="keywordtype">void</span> <a class="code hl_function" href="EditorMath_8h.html#a43e4c5ec2396f2fe6c491865170c303e">Editor_MatrixIdentity</a>(<a class="code hl_typedef" href="common__structs_8h.html#ab7160f77e736961cfa2aff581aeee005">Mat4</a> <a class="code hl_variable" href="render__objects_8c.html#aa6d460986556744dc5e412f987bbb803">mtx</a>);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span><span class="keywordtype">void</span> <a class="code hl_function" href="EditorMath_8h.html#a36bc6050f7e632a94460f767706e9042">Editor_AddMatrix</a>(<a class="code hl_typedef" href="common__structs_8h.html#ab7160f77e736961cfa2aff581aeee005">Mat4</a> <a class="code hl_variable" href="render__objects_8c.html#aa6d460986556744dc5e412f987bbb803">mtx</a>, int32_t flags);</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span><span class="keywordtype">float</span> <a class="code hl_function" href="EditorMath_8h.html#a3996a481768e0ff9830f8eae680e5049">CalculateAngle</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structFVector.html">FVector</a>&amp; start, <span class="keyword">const</span> <a class="code hl_struct" href="structFVector.html">FVector</a>&amp; end);</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span><span class="keywordtype">void</span> <a class="code hl_function" href="EditorMath_8h.html#aec421cbbf2e9bd9129630e44e420cd3b">SetDirectionFromRotator</a>(<a class="code hl_struct" href="structIRotator.html">IRotator</a> rot, s8 direction[3]);</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span><span class="keywordtype">void</span> <a class="code hl_function" href="EditorMath_8h.html#aac7aa1dff387eaece311af48b90df417">SetRotatorFromDirection</a>(<a class="code hl_struct" href="structFVector.html">FVector</a> direction, <a class="code hl_struct" href="structIRotator.html">IRotator</a>* rot);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><a class="code hl_struct" href="structFVector.html">FVector</a> <a class="code hl_function" href="EditorMath_8h.html#a707962eeb418c5eae5161502b49da8e4">GetPositionAheadOfCamera</a>(f32 dist);</div>
<div class="ttc" id="aCoreMath_8h_html"><div class="ttname"><a href="CoreMath_8h.html">CoreMath.h</a></div></div>
<div class="ttc" id="aEditorMath_8cpp_html_a1179dcc97ed416bba1cfb00506b4bacb"><div class="ttname"><a href="EditorMath_8cpp.html#a1179dcc97ed416bba1cfb00506b4bacb">EditorMatrix</a></div><div class="ttdeci">std::vector&lt; Mtx &gt; EditorMatrix</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:26</div></div>
<div class="ttc" id="aEditorMath_8h_html_a0bb1d0a9fb3649c90cab9dde2ae82ebd"><div class="ttname"><a href="EditorMath_8h.html#a0bb1d0a9fb3649c90cab9dde2ae82ebd">MultiplyMatrixVector</a></div><div class="ttdeci">FVector4 MultiplyMatrixVector(float matrix[4][4], float vector[4])</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:110</div></div>
<div class="ttc" id="aEditorMath_8h_html_a184566c244b6f86ed1728ff62afee2bc"><div class="ttname"><a href="EditorMath_8h.html#a184566c244b6f86ed1728ff62afee2bc">Clear</a></div><div class="ttdeci">void Clear(MtxF *mf)</div></div>
<div class="ttc" id="aEditorMath_8h_html_a2c886dcf27cddd6d4ccb5803eb9cc1df"><div class="ttname"><a href="EditorMath_8h.html#a2c886dcf27cddd6d4ccb5803eb9cc1df">ScreenRayTrace</a></div><div class="ttdeci">FVector ScreenRayTrace()</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:43</div></div>
<div class="ttc" id="aEditorMath_8h_html_a337de2cb19f9c542c8fff536d125899c"><div class="ttname"><a href="EditorMath_8h.html#a337de2cb19f9c542c8fff536d125899c">InverseMatrix</a></div><div class="ttdeci">static bool InverseMatrix(const float m[16], float invOut[16])</div></div>
<div class="ttc" id="aEditorMath_8h_html_a36bc6050f7e632a94460f767706e9042"><div class="ttname"><a href="EditorMath_8h.html#a36bc6050f7e632a94460f767706e9042">Editor_AddMatrix</a></div><div class="ttdeci">void Editor_AddMatrix(Mat4 mtx, int32_t flags)</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:365</div></div>
<div class="ttc" id="aEditorMath_8h_html_a3996a481768e0ff9830f8eae680e5049"><div class="ttname"><a href="EditorMath_8h.html#a3996a481768e0ff9830f8eae680e5049">CalculateAngle</a></div><div class="ttdeci">float CalculateAngle(const FVector &amp;start, const FVector &amp;end)</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:371</div></div>
<div class="ttc" id="aEditorMath_8h_html_a43e4c5ec2396f2fe6c491865170c303e"><div class="ttname"><a href="EditorMath_8h.html#a43e4c5ec2396f2fe6c491865170c303e">Editor_MatrixIdentity</a></div><div class="ttdeci">void Editor_MatrixIdentity(Mat4 mtx)</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:354</div></div>
<div class="ttc" id="aEditorMath_8h_html_a446de9721f70b65f5c16f69f563373ce"><div class="ttname"><a href="EditorMath_8h.html#a446de9721f70b65f5c16f69f563373ce">TransformVecByMatrix</a></div><div class="ttdeci">FVector TransformVecByMatrix(const FVector &amp;vec, const float mtx[4][4])</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:190</div></div>
<div class="ttc" id="aEditorMath_8h_html_a6c07635c069e546e94c1d547af500c8e"><div class="ttname"><a href="EditorMath_8h.html#a6c07635c069e546e94c1d547af500c8e">QueryHandleIntersection</a></div><div class="ttdeci">std::optional&lt; FVector &gt; QueryHandleIntersection(MtxF mtx, Ray ray, const Triangle &amp;tri)</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:283</div></div>
<div class="ttc" id="aEditorMath_8h_html_a707962eeb418c5eae5161502b49da8e4"><div class="ttname"><a href="EditorMath_8h.html#a707962eeb418c5eae5161502b49da8e4">GetPositionAheadOfCamera</a></div><div class="ttdeci">FVector GetPositionAheadOfCamera(f32 dist)</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:414</div></div>
<div class="ttc" id="aEditorMath_8h_html_a77a63e1d155375067e4639181ccdafac"><div class="ttname"><a href="EditorMath_8h.html#a77a63e1d155375067e4639181ccdafac">IntersectRayTriangle</a></div><div class="ttdeci">bool IntersectRayTriangle(const Ray &amp;ray, const Triangle &amp;tri, float &amp;t)</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:217</div></div>
<div class="ttc" id="aEditorMath_8h_html_a82e86dde49d8ab0f5459934034270713"><div class="ttname"><a href="EditorMath_8h.html#a82e86dde49d8ab0f5459934034270713">QueryCollisionRayActor</a></div><div class="ttdeci">bool QueryCollisionRayActor(Vec3f rayOrigin, Vec3f rayDir, Vec3f actorMin, Vec3f actorMax, float *t)</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:87</div></div>
<div class="ttc" id="aEditorMath_8h_html_a9c8b5418edb07797a10ec2e8546fba69"><div class="ttname"><a href="EditorMath_8h.html#a9c8b5418edb07797a10ec2e8546fba69">RayToLocalSpace</a></div><div class="ttdeci">Ray RayToLocalSpace(MtxF mtx, const Ray &amp;ray)</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:206</div></div>
<div class="ttc" id="aEditorMath_8h_html_aa2d521cc03fb83c55e19a96fe28cc5d6"><div class="ttname"><a href="EditorMath_8h.html#aa2d521cc03fb83c55e19a96fe28cc5d6">IntersectRaySphere</a></div><div class="ttdeci">bool IntersectRaySphere(const Ray &amp;ray, const FVector &amp;sphereCenter, float radius, float &amp;t)</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:294</div></div>
<div class="ttc" id="aEditorMath_8h_html_aac7aa1dff387eaece311af48b90df417"><div class="ttname"><a href="EditorMath_8h.html#aac7aa1dff387eaece311af48b90df417">SetRotatorFromDirection</a></div><div class="ttdeci">void SetRotatorFromDirection(FVector direction, IRotator *rot)</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:401</div></div>
<div class="ttc" id="aEditorMath_8h_html_ab0a9de936aec5e7e47fe73d35962d9c5"><div class="ttname"><a href="EditorMath_8h.html#ab0a9de936aec5e7e47fe73d35962d9c5">IntersectRayTriangleAndTransform</a></div><div class="ttdeci">bool IntersectRayTriangleAndTransform(const Ray &amp;ray, FVector pos, const Triangle &amp;tri, float &amp;t)</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:250</div></div>
<div class="ttc" id="aEditorMath_8h_html_ab214e16f2975deed27a80057b08125aa"><div class="ttname"><a href="EditorMath_8h.html#ab214e16f2975deed27a80057b08125aa">Copy</a></div><div class="ttdeci">void Copy(MtxF *src, MtxF *dest)</div></div>
<div class="ttc" id="aEditorMath_8h_html_aca6a2c3de6c78071cfa261ecc5cd342b"><div class="ttname"><a href="EditorMath_8h.html#aca6a2c3de6c78071cfa261ecc5cd342b">TransformVecDirection</a></div><div class="ttdeci">FVector TransformVecDirection(const FVector &amp;dir, const float mtx[4][4])</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:198</div></div>
<div class="ttc" id="aEditorMath_8h_html_ad7f685de0e3bbdd0d64410d65add84d5"><div class="ttname"><a href="EditorMath_8h.html#ad7f685de0e3bbdd0d64410d65add84d5">IsInGameScreen</a></div><div class="ttdeci">bool IsInGameScreen()</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:28</div></div>
<div class="ttc" id="aEditorMath_8h_html_aec421cbbf2e9bd9129630e44e420cd3b"><div class="ttname"><a href="EditorMath_8h.html#aec421cbbf2e9bd9129630e44e420cd3b">SetDirectionFromRotator</a></div><div class="ttdeci">void SetDirectionFromRotator(IRotator rot, s8 direction[3])</div><div class="ttdef"><b>Definition</b> EditorMath.cpp:383</div></div>
<div class="ttc" id="aGameObject_8h_html"><div class="ttname"><a href="GameObject_8h.html">GameObject.h</a></div></div>
<div class="ttc" id="acommon__structs_8h_html"><div class="ttname"><a href="common__structs_8h.html">common_structs.h</a></div></div>
<div class="ttc" id="acommon__structs_8h_html_a5290523279339ea495248ab3a36cb46e"><div class="ttname"><a href="common__structs_8h.html#a5290523279339ea495248ab3a36cb46e">Vec3f</a></div><div class="ttdeci">f32 Vec3f[3]</div><div class="ttdef"><b>Definition</b> common_structs.h:10</div></div>
<div class="ttc" id="acommon__structs_8h_html_ab7160f77e736961cfa2aff581aeee005"><div class="ttname"><a href="common__structs_8h.html#ab7160f77e736961cfa2aff581aeee005">Mat4</a></div><div class="ttdeci">f32 Mat4[4][4]</div><div class="ttdef"><b>Definition</b> common_structs.h:20</div></div>
<div class="ttc" id="arender__objects_8c_html_aa6d460986556744dc5e412f987bbb803"><div class="ttname"><a href="render__objects_8c.html#aa6d460986556744dc5e412f987bbb803">mtx</a></div><div class="ttdeci">Mat4 mtx</div><div class="ttdef"><b>Definition</b> render_objects.c:4156</div></div>
<div class="ttc" id="astructFVector4_html"><div class="ttname"><a href="structFVector4.html">FVector4</a></div><div class="ttdef"><b>Definition</b> CoreMath.h:82</div></div>
<div class="ttc" id="astructFVector_html"><div class="ttname"><a href="structFVector.html">FVector</a></div><div class="ttdef"><b>Definition</b> CoreMath.h:30</div></div>
<div class="ttc" id="astructIRotator_html"><div class="ttname"><a href="structIRotator.html">IRotator</a></div><div class="ttdef"><b>Definition</b> CoreMath.h:137</div></div>
<div class="ttc" id="astructRay_html"><div class="ttname"><a href="structRay.html">Ray</a></div><div class="ttdef"><b>Definition</b> EditorMath.h:18</div></div>
<div class="ttc" id="astructRay_html_a64d5e3df9c043edcf8bf970ae1608084"><div class="ttname"><a href="structRay.html#a64d5e3df9c043edcf8bf970ae1608084">Ray::Direction</a></div><div class="ttdeci">FVector Direction</div><div class="ttdef"><b>Definition</b> EditorMath.h:20</div></div>
<div class="ttc" id="astructRay_html_a80b34482481bc9f87e0201974db3bb55"><div class="ttname"><a href="structRay.html#a80b34482481bc9f87e0201974db3bb55">Ray::Origin</a></div><div class="ttdeci">FVector Origin</div><div class="ttdef"><b>Definition</b> EditorMath.h:19</div></div>
<div class="ttc" id="astructTriangle_html"><div class="ttname"><a href="structTriangle.html">Triangle</a></div><div class="ttdef"><b>Definition</b> EditorMath.h:23</div></div>
<div class="ttc" id="astructTriangle_html_a1ec25363fee520bf2daa68764ac0abae"><div class="ttname"><a href="structTriangle.html#a1ec25363fee520bf2daa68764ac0abae">Triangle::v2</a></div><div class="ttdeci">FVector v2</div><div class="ttdef"><b>Definition</b> EditorMath.h:24</div></div>
<div class="ttc" id="astructTriangle_html_a7767fe7777ebd652687c28c6e44238c9"><div class="ttname"><a href="structTriangle.html#a7767fe7777ebd652687c28c6e44238c9">Triangle::v1</a></div><div class="ttdeci">FVector v1</div><div class="ttdef"><b>Definition</b> EditorMath.h:24</div></div>
<div class="ttc" id="astructTriangle_html_aacdd556064e8069804edeadaca5f7e1c"><div class="ttname"><a href="structTriangle.html#aacdd556064e8069804edeadaca5f7e1c">Triangle::v0</a></div><div class="ttdeci">FVector v0</div><div class="ttdef"><b>Definition</b> EditorMath.h:24</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_2052808828190f934b76e979ee65af8a.html">engine</a></li><li class="navelem"><a class="el" href="dir_f4f7efabaac21873a58d10d576a92da6.html">editor</a></li><li class="navelem"><a class="el" href="EditorMath_8h.html">EditorMath.h</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2 </li>
</ul>
</div>
</body>
</html>