archeus/doc/doxygen/html/dd/d0d/math_2rectangle_8c_source.html

247 lines
41 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" 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.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Archeus: /home/herbglitch/programs/archeus/arc/src/math/rectangle.c 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="../../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" />
</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">Archeus<span id="projectnumber">&#160;0.0.0</span>
</div>
<div id="projectbrief">A C library and game engine that focuses on documentation</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<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(1); });
/* @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',false);
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- 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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="../../dir_ae9a93452e2a84339148a16bcf2eb561.html">math</a></li> </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
<div class="headertitle"><div class="title">rectangle.c</div></div>
</div><!--header-->
<div class="contents">
<a href="../../dd/d0d/math_2rectangle_8c.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">#include &quot;<a class="code" href="../../d2/d14/math_2rectangle_8h.html">arc/math/rectangle.h</a>&quot;</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="comment">//VERY TEMP</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment">// #include &lt;SDL.h&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span> </div>
<div class="foldopen" id="foldopen00006" data-start="{" data-end="}">
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"><a class="line" href="../../d2/d14/math_2rectangle_8h.html#a910c21230647ae28c55194d255bc8a7d"> 6</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../dd/d0d/math_2rectangle_8c.html#a910c21230647ae28c55194d255bc8a7d">ARC_Rect_CenterOn</a>(<a class="code hl_struct" href="../../d0/d18/structARC__Rect.html">ARC_Rect</a> *rect, <a class="code hl_struct" href="../../d0/d18/structARC__Rect.html">ARC_Rect</a> *bounds){</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> rect-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a0c6f8364cb183d5fd271f2f6d9a11128">x</a> = (bounds-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a0c6f8364cb183d5fd271f2f6d9a11128">x</a> + (bounds-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a2ed00701687a538b3c7df0a6a47697dd">w</a> / 2)) - (rect-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a2ed00701687a538b3c7df0a6a47697dd">w</a> / 2);</div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> rect-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a33859912d1bcd75496e12de4e3a08a3c">y</a> = (bounds-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a33859912d1bcd75496e12de4e3a08a3c">y</a> + (bounds-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a75f17b793a867572a521906a514a312b">h</a> / 2)) - (rect-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a75f17b793a867572a521906a514a312b">h</a> / 2);</div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span>}</div>
</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
<div class="foldopen" id="foldopen00011" data-start="{" data-end="}">
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="../../d2/d14/math_2rectangle_8h.html#ae1d122bd28d683c9cd4bde56859ef844"> 11</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../dd/d0d/math_2rectangle_8c.html#ae1d122bd28d683c9cd4bde56859ef844">ARC_FRect_CenterOn</a>(<a class="code hl_struct" href="../../dd/d4d/structARC__FRect.html">ARC_FRect</a> *rect, <a class="code hl_struct" href="../../dd/d4d/structARC__FRect.html">ARC_FRect</a> *bounds){</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a7c5955f28e78ffd886648a54d73d55d8">x</a> = (bounds-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a7c5955f28e78ffd886648a54d73d55d8">x</a> + (bounds-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#aadfc2f14c698cfb8e8e576c4ff3161bb">w</a> / 2.0f)) - (rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#aadfc2f14c698cfb8e8e576c4ff3161bb">w</a> / 2.0f);</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a460013a43c318245a00b717165431387">y</a> = (bounds-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a460013a43c318245a00b717165431387">y</a> + (bounds-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#ace1a858037a966ec9b3135ee118b3cc4">h</a> / 2.0f)) - (rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#ace1a858037a966ec9b3135ee118b3cc4">h</a> / 2.0f);</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span>}</div>
</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
<div class="foldopen" id="foldopen00016" data-start="{" data-end="}">
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="../../d2/d14/math_2rectangle_8h.html#a8e74551a0f97bd4fcaf3b1f6041d0cc5"> 16</a></span><a class="code hl_struct" href="../../dd/d4d/structARC__FRect.html">ARC_FRect</a> <a class="code hl_function" href="../../dd/d0d/math_2rectangle_8c.html#a8e74551a0f97bd4fcaf3b1f6041d0cc5">ARC_Rect_CastToFRect</a>(<a class="code hl_struct" href="../../d0/d18/structARC__Rect.html">ARC_Rect</a> *rect){</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> <span class="keywordflow">return</span> (<a class="code hl_struct" href="../../dd/d4d/structARC__FRect.html">ARC_FRect</a>){</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> .x = (float)rect-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a0c6f8364cb183d5fd271f2f6d9a11128">x</a>,</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> .y = (<span class="keywordtype">float</span>)rect-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a33859912d1bcd75496e12de4e3a08a3c">y</a>,</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> .w = (float)rect-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a2ed00701687a538b3c7df0a6a47697dd">w</a>,</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> .h = (<span class="keywordtype">float</span>)rect-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a75f17b793a867572a521906a514a312b">h</a>,</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> };</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span>}</div>
</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="foldopen" id="foldopen00025" data-start="{" data-end="}">
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="../../d2/d14/math_2rectangle_8h.html#a2716384cea95edfab47befa78b60fc00"> 25</a></span><a class="code hl_struct" href="../../d0/d18/structARC__Rect.html">ARC_Rect</a> <a class="code hl_function" href="../../dd/d0d/math_2rectangle_8c.html#a2716384cea95edfab47befa78b60fc00">ARC_FRect_CastToRect</a>(<a class="code hl_struct" href="../../dd/d4d/structARC__FRect.html">ARC_FRect</a> *rect){</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keywordflow">return</span> (<a class="code hl_struct" href="../../d0/d18/structARC__Rect.html">ARC_Rect</a>){</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> .x = (int32_t)rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a7c5955f28e78ffd886648a54d73d55d8">x</a>,</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> .y = (int32_t)rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a460013a43c318245a00b717165431387">y</a>,</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> .w = (int32_t)rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#aadfc2f14c698cfb8e8e576c4ff3161bb">w</a>,</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> .h = (int32_t)rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#ace1a858037a966ec9b3135ee118b3cc4">h</a>,</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> };</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span>}</div>
</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
<div class="foldopen" id="foldopen00034" data-start="{" data-end="}">
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="../../d2/d14/math_2rectangle_8h.html#a05c6b1799b44d3c011ea03510f05fab9"> 34</a></span>int32_t <a class="code hl_function" href="../../dd/d0d/math_2rectangle_8c.html#a05c6b1799b44d3c011ea03510f05fab9">ARC_Rect_Intersects</a>(<a class="code hl_struct" href="../../d0/d18/structARC__Rect.html">ARC_Rect</a> *rect1, <a class="code hl_struct" href="../../d0/d18/structARC__Rect.html">ARC_Rect</a> *rect2){</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <span class="keywordflow">if</span>(rect1-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a0c6f8364cb183d5fd271f2f6d9a11128">x</a> &lt;= rect2-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a0c6f8364cb183d5fd271f2f6d9a11128">x</a> + rect2-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a2ed00701687a538b3c7df0a6a47697dd">w</a> &amp;&amp; rect1-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a0c6f8364cb183d5fd271f2f6d9a11128">x</a> + rect1-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a2ed00701687a538b3c7df0a6a47697dd">w</a> &gt;= rect2-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a0c6f8364cb183d5fd271f2f6d9a11128">x</a> &amp;&amp;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> rect1-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a33859912d1bcd75496e12de4e3a08a3c">y</a> &lt;= rect2-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a33859912d1bcd75496e12de4e3a08a3c">y</a> + rect2-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a75f17b793a867572a521906a514a312b">h</a> &amp;&amp; rect1-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a33859912d1bcd75496e12de4e3a08a3c">y</a> + rect1-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a75f17b793a867572a521906a514a312b">h</a> &gt;= rect2-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a33859912d1bcd75496e12de4e3a08a3c">y</a>){</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordflow">return</span> 1;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> }</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span>}</div>
</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="foldopen" id="foldopen00042" data-start="{" data-end="}">
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="../../d2/d14/math_2rectangle_8h.html#ac3baf11e6f7624a21a553383176d6c6f"> 42</a></span>int32_t <a class="code hl_function" href="../../dd/d0d/math_2rectangle_8c.html#ac3baf11e6f7624a21a553383176d6c6f">ARC_FRect_Intersects</a>(<a class="code hl_struct" href="../../dd/d4d/structARC__FRect.html">ARC_FRect</a> *rect1, <a class="code hl_struct" href="../../dd/d4d/structARC__FRect.html">ARC_FRect</a> *rect2){</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keywordflow">if</span>(rect1-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a7c5955f28e78ffd886648a54d73d55d8">x</a> &lt;= rect2-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a7c5955f28e78ffd886648a54d73d55d8">x</a> + rect2-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#aadfc2f14c698cfb8e8e576c4ff3161bb">w</a> &amp;&amp; rect1-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a7c5955f28e78ffd886648a54d73d55d8">x</a> + rect1-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#aadfc2f14c698cfb8e8e576c4ff3161bb">w</a> &gt;= rect2-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a7c5955f28e78ffd886648a54d73d55d8">x</a> &amp;&amp;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> rect1-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a460013a43c318245a00b717165431387">y</a> &lt;= rect2-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a460013a43c318245a00b717165431387">y</a> + rect2-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#ace1a858037a966ec9b3135ee118b3cc4">h</a> &amp;&amp; rect1-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a460013a43c318245a00b717165431387">y</a> + rect1-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#ace1a858037a966ec9b3135ee118b3cc4">h</a> &gt;= rect2-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a460013a43c318245a00b717165431387">y</a>){</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">return</span> 1;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> }</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span>}</div>
</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
<div class="foldopen" id="foldopen00050" data-start="{" data-end="}">
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="../../d2/d14/math_2rectangle_8h.html#aca466591cebea1e1d30f7c2d161f5f0f"> 50</a></span>int32_t <a class="code hl_function" href="../../dd/d0d/math_2rectangle_8c.html#aca466591cebea1e1d30f7c2d161f5f0f">ARC_Rect_IntersectsPoint</a>(<a class="code hl_struct" href="../../d0/d18/structARC__Rect.html">ARC_Rect</a> *rect, <a class="code hl_struct" href="../../d2/d9d/structARC__Point.html">ARC_Point</a> *point){</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="keywordflow">if</span>(rect-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a0c6f8364cb183d5fd271f2f6d9a11128">x</a> &lt;= point-&gt;<a class="code hl_variable" href="../../d2/d9d/structARC__Point.html#aec135156ef69b46e71be21a02aad82e2">x</a> &amp;&amp; rect-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a0c6f8364cb183d5fd271f2f6d9a11128">x</a> + rect-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a2ed00701687a538b3c7df0a6a47697dd">w</a> &gt;= point-&gt;<a class="code hl_variable" href="../../d2/d9d/structARC__Point.html#aec135156ef69b46e71be21a02aad82e2">x</a> &amp;&amp;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> rect-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a33859912d1bcd75496e12de4e3a08a3c">y</a> &lt;= point-&gt;<a class="code hl_variable" href="../../d2/d9d/structARC__Point.html#a0b72b34f989c0351e5e64ba0b46bac8c">y</a> &amp;&amp; rect-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a33859912d1bcd75496e12de4e3a08a3c">y</a> + rect-&gt;<a class="code hl_variable" href="../../d0/d18/structARC__Rect.html#a75f17b793a867572a521906a514a312b">h</a> &gt;= point-&gt;<a class="code hl_variable" href="../../d2/d9d/structARC__Point.html#a0b72b34f989c0351e5e64ba0b46bac8c">y</a>){</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordflow">return</span> 1;</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="keywordflow">return</span> 0;</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span>}</div>
</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
<div class="foldopen" id="foldopen00058" data-start="{" data-end="}">
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="../../d2/d14/math_2rectangle_8h.html#a9ee5256187b0430f60a252ef7d6e331c"> 58</a></span>int32_t <a class="code hl_function" href="../../dd/d0d/math_2rectangle_8c.html#a9ee5256187b0430f60a252ef7d6e331c">ARC_FRect_IntersectsPoint</a>(<a class="code hl_struct" href="../../dd/d4d/structARC__FRect.html">ARC_FRect</a> *rect, <a class="code hl_struct" href="../../d2/d9d/structARC__Point.html">ARC_Point</a> *point){</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keywordflow">if</span>(rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a7c5955f28e78ffd886648a54d73d55d8">x</a> &lt;= point-&gt;<a class="code hl_variable" href="../../d2/d9d/structARC__Point.html#aec135156ef69b46e71be21a02aad82e2">x</a> &amp;&amp; rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a7c5955f28e78ffd886648a54d73d55d8">x</a> + rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#aadfc2f14c698cfb8e8e576c4ff3161bb">w</a> &gt;= point-&gt;<a class="code hl_variable" href="../../d2/d9d/structARC__Point.html#aec135156ef69b46e71be21a02aad82e2">x</a> &amp;&amp;</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a460013a43c318245a00b717165431387">y</a> &lt;= point-&gt;<a class="code hl_variable" href="../../d2/d9d/structARC__Point.html#a0b72b34f989c0351e5e64ba0b46bac8c">y</a> &amp;&amp; rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a460013a43c318245a00b717165431387">y</a> + rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#ace1a858037a966ec9b3135ee118b3cc4">h</a> &gt;= point-&gt;<a class="code hl_variable" href="../../d2/d9d/structARC__Point.html#a0b72b34f989c0351e5e64ba0b46bac8c">y</a>){</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keywordflow">return</span> 1;</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> }</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span>}</div>
</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="foldopen" id="foldopen00066" data-start="{" data-end="}">
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="../../d2/d14/math_2rectangle_8h.html#ae533a88317c303e0efa00f95887b419f"> 66</a></span>int32_t <a class="code hl_function" href="../../dd/d0d/math_2rectangle_8c.html#ae533a88317c303e0efa00f95887b419f">ARC_Rect_LineIntersects</a>(<a class="code hl_struct" href="../../d0/d18/structARC__Rect.html">ARC_Rect</a> *rect, int32_t *x1, int32_t *y1, int32_t *x2, int32_t *y2){</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="comment">//TODO: Replace soon</span></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="comment">// return SDL_IntersectRectAndLine((SDL_Rect *) rect, x1, y1, x2, y2);</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keywordflow">return</span> 1;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span>}</div>
</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span><span class="comment">//TODO: position 1px away from colliding, so if velocity is greater than 2px it doesn&#39;t have weird gap spacing</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span><span class="comment">// might need to check diagnals as well, this is a rudamentry implementation</span></div>
<div class="foldopen" id="foldopen00074" data-start="{" data-end="}">
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="../../d2/d14/math_2rectangle_8h.html#a8d7a17b45e6a54a50df9b3930b3ace79"> 74</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../dd/d0d/math_2rectangle_8c.html#a8d7a17b45e6a54a50df9b3930b3ace79">ARC_FRect_CollideAndSlide</a>(<a class="code hl_struct" href="../../dd/d4d/structARC__FRect.html">ARC_FRect</a> *rect, <a class="code hl_struct" href="../../db/d86/structARC__Vector2.html">ARC_Vector2</a> *velocity, <a class="code hl_struct" href="../../dd/d4d/structARC__FRect.html">ARC_FRect</a> *wall){</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <a class="code hl_struct" href="../../dd/d4d/structARC__FRect.html">ARC_FRect</a> nextRectPosition = {</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> .x = rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a7c5955f28e78ffd886648a54d73d55d8">x</a> + velocity-&gt;<a class="code hl_variable" href="../../db/d86/structARC__Vector2.html#a42edc95888c030b994268da65efc7e2d">x</a>,</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> .y = rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a460013a43c318245a00b717165431387">y</a> + velocity-&gt;<a class="code hl_variable" href="../../db/d86/structARC__Vector2.html#a8bff4a083df18e51a0792c0c837344f0">y</a>,</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> .w = rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#aadfc2f14c698cfb8e8e576c4ff3161bb">w</a>,</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> .h = rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#ace1a858037a966ec9b3135ee118b3cc4">h</a></div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> };</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="comment">//there is no collision, return</span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="keywordflow">if</span>(!<a class="code hl_function" href="../../dd/d0d/math_2rectangle_8c.html#ac3baf11e6f7624a21a553383176d6c6f">ARC_FRect_Intersects</a>(&amp;nextRectPosition, wall)){</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> }</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> nextRectPosition.<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a7c5955f28e78ffd886648a54d73d55d8">x</a> = rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a7c5955f28e78ffd886648a54d73d55d8">x</a> + velocity-&gt;<a class="code hl_variable" href="../../db/d86/structARC__Vector2.html#a42edc95888c030b994268da65efc7e2d">x</a>;</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> nextRectPosition.<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a460013a43c318245a00b717165431387">y</a> = rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a460013a43c318245a00b717165431387">y</a>;</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keywordflow">if</span>(<a class="code hl_function" href="../../dd/d0d/math_2rectangle_8c.html#ac3baf11e6f7624a21a553383176d6c6f">ARC_FRect_Intersects</a>(&amp;nextRectPosition, wall)){</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> velocity-&gt;<a class="code hl_variable" href="../../db/d86/structARC__Vector2.html#a42edc95888c030b994268da65efc7e2d">x</a> = 0;</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> }</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> </div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> nextRectPosition.<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a7c5955f28e78ffd886648a54d73d55d8">x</a> = rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a7c5955f28e78ffd886648a54d73d55d8">x</a>;</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> nextRectPosition.<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a460013a43c318245a00b717165431387">y</a> = rect-&gt;<a class="code hl_variable" href="../../dd/d4d/structARC__FRect.html#a460013a43c318245a00b717165431387">y</a> + velocity-&gt;<a class="code hl_variable" href="../../db/d86/structARC__Vector2.html#a8bff4a083df18e51a0792c0c837344f0">y</a>;</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="keywordflow">if</span>(<a class="code hl_function" href="../../dd/d0d/math_2rectangle_8c.html#ac3baf11e6f7624a21a553383176d6c6f">ARC_FRect_Intersects</a>(&amp;nextRectPosition, wall)){</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> velocity-&gt;<a class="code hl_variable" href="../../db/d86/structARC__Vector2.html#a8bff4a083df18e51a0792c0c837344f0">y</a> = 0;</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> }</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span>}</div>
</div>
<div class="ttc" id="amath_2rectangle_8c_html_a05c6b1799b44d3c011ea03510f05fab9"><div class="ttname"><a href="../../dd/d0d/math_2rectangle_8c.html#a05c6b1799b44d3c011ea03510f05fab9">ARC_Rect_Intersects</a></div><div class="ttdeci">int32_t ARC_Rect_Intersects(ARC_Rect *rect1, ARC_Rect *rect2)</div><div class="ttdoc">checks if two ARC_Rects intersect</div><div class="ttdef"><b>Definition</b> <a href="#l00034">rectangle.c:34</a></div></div>
<div class="ttc" id="amath_2rectangle_8c_html_a2716384cea95edfab47befa78b60fc00"><div class="ttname"><a href="../../dd/d0d/math_2rectangle_8c.html#a2716384cea95edfab47befa78b60fc00">ARC_FRect_CastToRect</a></div><div class="ttdeci">ARC_Rect ARC_FRect_CastToRect(ARC_FRect *rect)</div><div class="ttdoc">casts FRect to Rect</div><div class="ttdef"><b>Definition</b> <a href="#l00025">rectangle.c:25</a></div></div>
<div class="ttc" id="amath_2rectangle_8c_html_a8d7a17b45e6a54a50df9b3930b3ace79"><div class="ttname"><a href="../../dd/d0d/math_2rectangle_8c.html#a8d7a17b45e6a54a50df9b3930b3ace79">ARC_FRect_CollideAndSlide</a></div><div class="ttdeci">void ARC_FRect_CollideAndSlide(ARC_FRect *rect, ARC_Vector2 *velocity, ARC_FRect *wall)</div><div class="ttdoc">checks for a ARC_Rect on ARC_Rect collision and slides on collision</div><div class="ttdef"><b>Definition</b> <a href="#l00074">rectangle.c:74</a></div></div>
<div class="ttc" id="amath_2rectangle_8c_html_a8e74551a0f97bd4fcaf3b1f6041d0cc5"><div class="ttname"><a href="../../dd/d0d/math_2rectangle_8c.html#a8e74551a0f97bd4fcaf3b1f6041d0cc5">ARC_Rect_CastToFRect</a></div><div class="ttdeci">ARC_FRect ARC_Rect_CastToFRect(ARC_Rect *rect)</div><div class="ttdoc">casts Rect to FRect</div><div class="ttdef"><b>Definition</b> <a href="#l00016">rectangle.c:16</a></div></div>
<div class="ttc" id="amath_2rectangle_8c_html_a910c21230647ae28c55194d255bc8a7d"><div class="ttname"><a href="../../dd/d0d/math_2rectangle_8c.html#a910c21230647ae28c55194d255bc8a7d">ARC_Rect_CenterOn</a></div><div class="ttdeci">void ARC_Rect_CenterOn(ARC_Rect *rect, ARC_Rect *bounds)</div><div class="ttdoc">centers rect on given bounds</div><div class="ttdef"><b>Definition</b> <a href="#l00006">rectangle.c:6</a></div></div>
<div class="ttc" id="amath_2rectangle_8c_html_a9ee5256187b0430f60a252ef7d6e331c"><div class="ttname"><a href="../../dd/d0d/math_2rectangle_8c.html#a9ee5256187b0430f60a252ef7d6e331c">ARC_FRect_IntersectsPoint</a></div><div class="ttdeci">int32_t ARC_FRect_IntersectsPoint(ARC_FRect *rect, ARC_Point *point)</div><div class="ttdoc">checks if ARC_FRect intersects with point</div><div class="ttdef"><b>Definition</b> <a href="#l00058">rectangle.c:58</a></div></div>
<div class="ttc" id="amath_2rectangle_8c_html_ac3baf11e6f7624a21a553383176d6c6f"><div class="ttname"><a href="../../dd/d0d/math_2rectangle_8c.html#ac3baf11e6f7624a21a553383176d6c6f">ARC_FRect_Intersects</a></div><div class="ttdeci">int32_t ARC_FRect_Intersects(ARC_FRect *rect1, ARC_FRect *rect2)</div><div class="ttdoc">checks if two ARC_FRects intersect</div><div class="ttdef"><b>Definition</b> <a href="#l00042">rectangle.c:42</a></div></div>
<div class="ttc" id="amath_2rectangle_8c_html_aca466591cebea1e1d30f7c2d161f5f0f"><div class="ttname"><a href="../../dd/d0d/math_2rectangle_8c.html#aca466591cebea1e1d30f7c2d161f5f0f">ARC_Rect_IntersectsPoint</a></div><div class="ttdeci">int32_t ARC_Rect_IntersectsPoint(ARC_Rect *rect, ARC_Point *point)</div><div class="ttdoc">checks if ARC_Rect intersects with point</div><div class="ttdef"><b>Definition</b> <a href="#l00050">rectangle.c:50</a></div></div>
<div class="ttc" id="amath_2rectangle_8c_html_ae1d122bd28d683c9cd4bde56859ef844"><div class="ttname"><a href="../../dd/d0d/math_2rectangle_8c.html#ae1d122bd28d683c9cd4bde56859ef844">ARC_FRect_CenterOn</a></div><div class="ttdeci">void ARC_FRect_CenterOn(ARC_FRect *rect, ARC_FRect *bounds)</div><div class="ttdoc">centers rect on given bounds</div><div class="ttdef"><b>Definition</b> <a href="#l00011">rectangle.c:11</a></div></div>
<div class="ttc" id="amath_2rectangle_8c_html_ae533a88317c303e0efa00f95887b419f"><div class="ttname"><a href="../../dd/d0d/math_2rectangle_8c.html#ae533a88317c303e0efa00f95887b419f">ARC_Rect_LineIntersects</a></div><div class="ttdeci">int32_t ARC_Rect_LineIntersects(ARC_Rect *rect, int32_t *x1, int32_t *y1, int32_t *x2, int32_t *y2)</div><div class="ttdoc">checks if ARC_Rect intersects a line</div><div class="ttdef"><b>Definition</b> <a href="#l00066">rectangle.c:66</a></div></div>
<div class="ttc" id="amath_2rectangle_8h_html"><div class="ttname"><a href="../../d2/d14/math_2rectangle_8h.html">rectangle.h</a></div></div>
<div class="ttc" id="astructARC__FRect_html"><div class="ttname"><a href="../../dd/d4d/structARC__FRect.html">ARC_FRect</a></div><div class="ttdef"><b>Definition</b> <a href="../../d2/d14/math_2rectangle_8h_source.html#l00026">rectangle.h:26</a></div></div>
<div class="ttc" id="astructARC__FRect_html_a460013a43c318245a00b717165431387"><div class="ttname"><a href="../../dd/d4d/structARC__FRect.html#a460013a43c318245a00b717165431387">ARC_FRect::y</a></div><div class="ttdeci">float y</div><div class="ttdef"><b>Definition</b> <a href="../../d2/d14/math_2rectangle_8h_source.html#l00028">rectangle.h:28</a></div></div>
<div class="ttc" id="astructARC__FRect_html_a7c5955f28e78ffd886648a54d73d55d8"><div class="ttname"><a href="../../dd/d4d/structARC__FRect.html#a7c5955f28e78ffd886648a54d73d55d8">ARC_FRect::x</a></div><div class="ttdeci">float x</div><div class="ttdef"><b>Definition</b> <a href="../../d2/d14/math_2rectangle_8h_source.html#l00027">rectangle.h:27</a></div></div>
<div class="ttc" id="astructARC__FRect_html_aadfc2f14c698cfb8e8e576c4ff3161bb"><div class="ttname"><a href="../../dd/d4d/structARC__FRect.html#aadfc2f14c698cfb8e8e576c4ff3161bb">ARC_FRect::w</a></div><div class="ttdeci">float w</div><div class="ttdef"><b>Definition</b> <a href="../../d2/d14/math_2rectangle_8h_source.html#l00029">rectangle.h:29</a></div></div>
<div class="ttc" id="astructARC__FRect_html_ace1a858037a966ec9b3135ee118b3cc4"><div class="ttname"><a href="../../dd/d4d/structARC__FRect.html#ace1a858037a966ec9b3135ee118b3cc4">ARC_FRect::h</a></div><div class="ttdeci">float h</div><div class="ttdef"><b>Definition</b> <a href="../../d2/d14/math_2rectangle_8h_source.html#l00030">rectangle.h:30</a></div></div>
<div class="ttc" id="astructARC__Point_html"><div class="ttname"><a href="../../d2/d9d/structARC__Point.html">ARC_Point</a></div><div class="ttdef"><b>Definition</b> <a href="../../d2/d91/point_8h_source.html#l00010">point.h:10</a></div></div>
<div class="ttc" id="astructARC__Point_html_a0b72b34f989c0351e5e64ba0b46bac8c"><div class="ttname"><a href="../../d2/d9d/structARC__Point.html#a0b72b34f989c0351e5e64ba0b46bac8c">ARC_Point::y</a></div><div class="ttdeci">int32_t y</div><div class="ttdef"><b>Definition</b> <a href="../../d2/d91/point_8h_source.html#l00012">point.h:12</a></div></div>
<div class="ttc" id="astructARC__Point_html_aec135156ef69b46e71be21a02aad82e2"><div class="ttname"><a href="../../d2/d9d/structARC__Point.html#aec135156ef69b46e71be21a02aad82e2">ARC_Point::x</a></div><div class="ttdeci">int32_t x</div><div class="ttdef"><b>Definition</b> <a href="../../d2/d91/point_8h_source.html#l00011">point.h:11</a></div></div>
<div class="ttc" id="astructARC__Rect_html"><div class="ttname"><a href="../../d0/d18/structARC__Rect.html">ARC_Rect</a></div><div class="ttdef"><b>Definition</b> <a href="../../d2/d14/math_2rectangle_8h_source.html#l00012">rectangle.h:12</a></div></div>
<div class="ttc" id="astructARC__Rect_html_a0c6f8364cb183d5fd271f2f6d9a11128"><div class="ttname"><a href="../../d0/d18/structARC__Rect.html#a0c6f8364cb183d5fd271f2f6d9a11128">ARC_Rect::x</a></div><div class="ttdeci">int32_t x</div><div class="ttdef"><b>Definition</b> <a href="../../d2/d14/math_2rectangle_8h_source.html#l00013">rectangle.h:13</a></div></div>
<div class="ttc" id="astructARC__Rect_html_a2ed00701687a538b3c7df0a6a47697dd"><div class="ttname"><a href="../../d0/d18/structARC__Rect.html#a2ed00701687a538b3c7df0a6a47697dd">ARC_Rect::w</a></div><div class="ttdeci">int32_t w</div><div class="ttdef"><b>Definition</b> <a href="../../d2/d14/math_2rectangle_8h_source.html#l00015">rectangle.h:15</a></div></div>
<div class="ttc" id="astructARC__Rect_html_a33859912d1bcd75496e12de4e3a08a3c"><div class="ttname"><a href="../../d0/d18/structARC__Rect.html#a33859912d1bcd75496e12de4e3a08a3c">ARC_Rect::y</a></div><div class="ttdeci">int32_t y</div><div class="ttdef"><b>Definition</b> <a href="../../d2/d14/math_2rectangle_8h_source.html#l00014">rectangle.h:14</a></div></div>
<div class="ttc" id="astructARC__Rect_html_a75f17b793a867572a521906a514a312b"><div class="ttname"><a href="../../d0/d18/structARC__Rect.html#a75f17b793a867572a521906a514a312b">ARC_Rect::h</a></div><div class="ttdeci">int32_t h</div><div class="ttdef"><b>Definition</b> <a href="../../d2/d14/math_2rectangle_8h_source.html#l00016">rectangle.h:16</a></div></div>
<div class="ttc" id="astructARC__Vector2_html"><div class="ttname"><a href="../../db/d86/structARC__Vector2.html">ARC_Vector2</a></div><div class="ttdef"><b>Definition</b> <a href="../../d1/d03/vector2_8h_source.html#l00008">vector2.h:8</a></div></div>
<div class="ttc" id="astructARC__Vector2_html_a42edc95888c030b994268da65efc7e2d"><div class="ttname"><a href="../../db/d86/structARC__Vector2.html#a42edc95888c030b994268da65efc7e2d">ARC_Vector2::x</a></div><div class="ttdeci">float x</div><div class="ttdef"><b>Definition</b> <a href="../../d1/d03/vector2_8h_source.html#l00009">vector2.h:9</a></div></div>
<div class="ttc" id="astructARC__Vector2_html_a8bff4a083df18e51a0792c0c837344f0"><div class="ttname"><a href="../../db/d86/structARC__Vector2.html#a8bff4a083df18e51a0792c0c837344f0">ARC_Vector2::y</a></div><div class="ttdeci">float y</div><div class="ttdef"><b>Definition</b> <a href="../../d1/d03/vector2_8h_source.html#l00009">vector2.h:9</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>