diff options
Diffstat (limited to 'Doc/doxygen/html/_geometry_8h_source.html')
-rw-r--r-- | Doc/doxygen/html/_geometry_8h_source.html | 419 |
1 files changed, 419 insertions, 0 deletions
diff --git a/Doc/doxygen/html/_geometry_8h_source.html b/Doc/doxygen/html/_geometry_8h_source.html new file mode 100644 index 0000000..9467503 --- /dev/null +++ b/Doc/doxygen/html/_geometry_8h_source.html @@ -0,0 +1,419 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<title>Starshatter_Open: D:/SRC/StarshatterSVN/nGenEx/Geometry.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="navtree.js"></script> +<script type="text/javascript"> + $(document).ready(initResizable); +</script> +<link href="search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { searchBox.OnSelectItem(0); }); +</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 style="padding-left: 0.5em;"> + <div id="projectname">Starshatter_Open + </div> + <div id="projectbrief">Open source Starshatter engine</div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.1 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "search",false,'Search'); +</script> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li> + <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> + </span> + </div> + </li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +</div><!-- top --> +<div id="side-nav" class="ui-resizable side-nav-resizable"> + <div id="nav-tree"> + <div id="nav-tree-contents"> + </div> + </div> + <div id="splitbar" style="-moz-user-select:none;" + class="ui-resizable-handle"> + </div> +</div> +<script type="text/javascript"> +$(document).ready(function(){initNavTree('_geometry_8h.html','');}); +</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)"> +<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a></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">Geometry.h</div> </div> +</div><!--header--> +<div class="contents"> +<a href="_geometry_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> <span class="comment">/* Project nGenEx</span></div> +<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> Destroyer Studios LLC</span></div> +<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> Copyright © 1997-2004. All Rights Reserved.</span></div> +<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"></span></div> +<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> SUBSYSTEM: nGenEx.lib</span></div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> FILE: Geometry.h</span></div> +<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> AUTHOR: John DiCamillo</span></div> +<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"></span></div> +<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span></div> +<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> OVERVIEW</span></div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> ========</span></div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> Geometric classes: Rect, Vec3, Point, Matrix, Plane</span></div> +<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">*/</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"> 15</span> <span class="preprocessor">#ifndef Geometry_h</span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor"></span><span class="preprocessor">#define Geometry_h</span></div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="_types_8h.html">Types.h</a>"</span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">// +--------------------------------------------------------------------+</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="keyword">struct </span><a class="code" href="struct_rect.html">Rect</a>;</div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">struct </span><a class="code" href="struct_insets.html">Insets</a>;</div> +<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">struct </span><a class="code" href="struct_matrix.html">Matrix</a>;</div> +<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">struct </span><a class="code" href="struct_vec3.html">Vec3</a>;</div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">struct </span><a class="code" href="struct_point.html">Point</a>;</div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">struct </span><a class="code" href="struct_quaternion.html">Quaternion</a>;</div> +<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">struct </span><a class="code" href="struct_plane.html">Plane</a>;</div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div> +<div class="line"><a name="l00030"></a><span class="lineno"><a class="code" href="_geometry_8h.html#a952eac791b596a61bba0a133a3bb439f"> 30</a></span> <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="_geometry_8h.html#a952eac791b596a61bba0a133a3bb439f">PI</a> = 3.14159265358979323846;</div> +<div class="line"><a name="l00031"></a><span class="lineno"><a class="code" href="_geometry_8h.html#a530d0fdbd8b1d8b27d9dffd58969e394"> 31</a></span> <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="_geometry_8h.html#a530d0fdbd8b1d8b27d9dffd58969e394">DEGREES</a> = (<a class="code" href="_geometry_8h.html#a952eac791b596a61bba0a133a3bb439f">PI</a>/180);</div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div> +<div class="line"><a name="l00035"></a><span class="lineno"><a class="code" href="struct_rect.html"> 35</a></span> <span class="keyword">struct </span><a class="code" href="struct_rect.html">Rect</a></div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {</div> +<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="struct_rect.html#ae888ffbac148c4949d8ce37758ac8b15"> 37</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="struct_rect.html#ae888ffbac148c4949d8ce37758ac8b15">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"Rect"</span>; }</div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div> +<div class="line"><a name="l00039"></a><span class="lineno"><a class="code" href="struct_rect.html#a911e531b86de33734dd7de3456722115"> 39</a></span>  <a class="code" href="struct_rect.html#a911e531b86de33734dd7de3456722115">Rect</a>() : <a class="code" href="struct_rect.html#a64d1ef14e429e1816539de4c54361e55">x</a>(0), <a class="code" href="struct_rect.html#a1e37b6f8a4fb0d68ba22c8fffffab0a4">y</a>(0), <a class="code" href="struct_rect.html#a36b6c8bb15c7706c3b2b3e91345e11f8">w</a>(0), <a class="code" href="struct_rect.html#af9111a21106ba65952da60320ea91df6">h</a>(0) { }</div> +<div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="struct_rect.html#aafcbf32be473c4057129c7764d36be8f"> 40</a></span>  <a class="code" href="struct_rect.html#aafcbf32be473c4057129c7764d36be8f">Rect</a>(<span class="keywordtype">int</span> ix, <span class="keywordtype">int</span> iy, <span class="keywordtype">int</span> iw, <span class="keywordtype">int</span> ih) : <a class="code" href="struct_rect.html#a64d1ef14e429e1816539de4c54361e55">x</a>(ix), <a class="code" href="struct_rect.html#a1e37b6f8a4fb0d68ba22c8fffffab0a4">y</a>(iy), <a class="code" href="struct_rect.html#a36b6c8bb15c7706c3b2b3e91345e11f8">w</a>(iw), <a class="code" href="struct_rect.html#af9111a21106ba65952da60320ea91df6">h</a>(ih) { }</div> +<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div> +<div class="line"><a name="l00042"></a><span class="lineno"><a class="code" href="struct_rect.html#acb180a5102284b9419bcfe5d2b74e6e8"> 42</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_rect.html#acb180a5102284b9419bcfe5d2b74e6e8">operator==</a>(<span class="keyword">const</span> <a class="code" href="struct_rect.html">Rect</a>& r)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_rect.html#a64d1ef14e429e1816539de4c54361e55">x</a>==r.<a class="code" href="struct_rect.html#a64d1ef14e429e1816539de4c54361e55">x</a> && <a class="code" href="struct_rect.html#a1e37b6f8a4fb0d68ba22c8fffffab0a4">y</a>==r.<a class="code" href="struct_rect.html#a1e37b6f8a4fb0d68ba22c8fffffab0a4">y</a> && <a class="code" href="struct_rect.html#a36b6c8bb15c7706c3b2b3e91345e11f8">w</a>==r.<a class="code" href="struct_rect.html#a36b6c8bb15c7706c3b2b3e91345e11f8">w</a> && <a class="code" href="struct_rect.html#af9111a21106ba65952da60320ea91df6">h</a>==r.<a class="code" href="struct_rect.html#af9111a21106ba65952da60320ea91df6">h</a>; }</div> +<div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="struct_rect.html#ad9aded1adb679e79bbdf0877e2d0ce70"> 43</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_rect.html#ad9aded1adb679e79bbdf0877e2d0ce70">operator!=</a>(<span class="keyword">const</span> <a class="code" href="struct_rect.html">Rect</a>& r)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_rect.html#a64d1ef14e429e1816539de4c54361e55">x</a>!=r.<a class="code" href="struct_rect.html#a64d1ef14e429e1816539de4c54361e55">x</a> || <a class="code" href="struct_rect.html#a1e37b6f8a4fb0d68ba22c8fffffab0a4">y</a>!=r.<a class="code" href="struct_rect.html#a1e37b6f8a4fb0d68ba22c8fffffab0a4">y</a> || <a class="code" href="struct_rect.html#a36b6c8bb15c7706c3b2b3e91345e11f8">w</a>!=r.<a class="code" href="struct_rect.html#a36b6c8bb15c7706c3b2b3e91345e11f8">w</a> || <a class="code" href="struct_rect.html#af9111a21106ba65952da60320ea91df6">h</a>!=r.<a class="code" href="struct_rect.html#af9111a21106ba65952da60320ea91df6">h</a>; }</div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div> +<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordtype">void</span> <a class="code" href="struct_rect.html#aaf7b062bbef6819c1104f6de549c58c7">Inflate</a>(<span class="keywordtype">int</span> dw, <span class="keywordtype">int</span> dh);</div> +<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordtype">void</span> <a class="code" href="struct_rect.html#a1508d1d285a77918f29b9632327c31c7">Deflate</a>(<span class="keywordtype">int</span> dw, <span class="keywordtype">int</span> dh);</div> +<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">void</span> <a class="code" href="struct_rect.html#a9763b4eb1b7944b98f1e52636fe58423">Inset</a>(<span class="keywordtype">int</span> left, <span class="keywordtype">int</span> right, <span class="keywordtype">int</span> top, <span class="keywordtype">int</span> bottom);</div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">int</span> <a class="code" href="struct_rect.html#a313d99d90704af63f9efa437bbbf453d">Contains</a>(<span class="keywordtype">int</span> <a class="code" href="struct_rect.html#a64d1ef14e429e1816539de4c54361e55">x</a>, <span class="keywordtype">int</span> <a class="code" href="struct_rect.html#a1e37b6f8a4fb0d68ba22c8fffffab0a4">y</a>) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div> +<div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="struct_rect.html#a1e37b6f8a4fb0d68ba22c8fffffab0a4"> 50</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_rect.html#a64d1ef14e429e1816539de4c54361e55">x</a>, <a class="code" href="struct_rect.html#a1e37b6f8a4fb0d68ba22c8fffffab0a4">y</a>, <a class="code" href="struct_rect.html#a36b6c8bb15c7706c3b2b3e91345e11f8">w</a>, <a class="code" href="struct_rect.html#af9111a21106ba65952da60320ea91df6">h</a>;</div> +<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> };</div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div> +<div class="line"><a name="l00055"></a><span class="lineno"><a class="code" href="struct_insets.html"> 55</a></span> <span class="keyword">struct </span><a class="code" href="struct_insets.html">Insets</a></div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> {</div> +<div class="line"><a name="l00057"></a><span class="lineno"><a class="code" href="struct_insets.html#a538b825d11a592d29a2d651892ce2c80"> 57</a></span>  <a class="code" href="struct_insets.html#a538b825d11a592d29a2d651892ce2c80">Insets</a>() : <a class="code" href="struct_insets.html#a348690ffd6d98a276c243c47657b8d1b">left</a>(0), <a class="code" href="struct_insets.html#aeaa99db93f1146209b9c3ad5ee2e435e">right</a>(0), <a class="code" href="struct_insets.html#a7ff61d0722311b297fcbb011a630b664">top</a>(0), <a class="code" href="struct_insets.html#adfb399faa073beb8e217f67251c0aa04">bottom</a>(0) { }</div> +<div class="line"><a name="l00058"></a><span class="lineno"><a class="code" href="struct_insets.html#aa12ec30cf89fde6d5284d866851c961d"> 58</a></span>  <a class="code" href="struct_insets.html#aa12ec30cf89fde6d5284d866851c961d">Insets</a>(WORD l, WORD r, WORD t, WORD b) : <a class="code" href="struct_insets.html#a348690ffd6d98a276c243c47657b8d1b">left</a>(l), <a class="code" href="struct_insets.html#aeaa99db93f1146209b9c3ad5ee2e435e">right</a>(r), <a class="code" href="struct_insets.html#a7ff61d0722311b297fcbb011a630b664">top</a>(t), <a class="code" href="struct_insets.html#adfb399faa073beb8e217f67251c0aa04">bottom</a>(b) { }</div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div> +<div class="line"><a name="l00060"></a><span class="lineno"><a class="code" href="struct_insets.html#a348690ffd6d98a276c243c47657b8d1b"> 60</a></span>  WORD <a class="code" href="struct_insets.html#a348690ffd6d98a276c243c47657b8d1b">left</a>;</div> +<div class="line"><a name="l00061"></a><span class="lineno"><a class="code" href="struct_insets.html#aeaa99db93f1146209b9c3ad5ee2e435e"> 61</a></span>  WORD <a class="code" href="struct_insets.html#aeaa99db93f1146209b9c3ad5ee2e435e">right</a>;</div> +<div class="line"><a name="l00062"></a><span class="lineno"><a class="code" href="struct_insets.html#a7ff61d0722311b297fcbb011a630b664"> 62</a></span>  WORD <a class="code" href="struct_insets.html#a7ff61d0722311b297fcbb011a630b664">top</a>;</div> +<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="struct_insets.html#adfb399faa073beb8e217f67251c0aa04"> 63</a></span>  WORD <a class="code" href="struct_insets.html#adfb399faa073beb8e217f67251c0aa04">bottom</a>;</div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> };</div> +<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div> +<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div> +<div class="line"><a name="l00068"></a><span class="lineno"><a class="code" href="struct_matrix.html"> 68</a></span> <span class="keyword">struct </span><a class="code" href="struct_matrix.html">Matrix</a></div> +<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> {</div> +<div class="line"><a name="l00070"></a><span class="lineno"><a class="code" href="struct_matrix.html#a902ac3fd53f35a2d0e9c2d59daba16eb"> 70</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="struct_matrix.html#a902ac3fd53f35a2d0e9c2d59daba16eb">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"Matrix"</span>; }</div> +<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div> +<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="struct_matrix.html#a2dba13c45127354c9f75ef576f49269b">Matrix</a>();</div> +<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="struct_matrix.html#a2dba13c45127354c9f75ef576f49269b">Matrix</a>(<span class="keyword">const</span> <a class="code" href="struct_matrix.html">Matrix</a>& m);</div> +<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="struct_matrix.html#a2dba13c45127354c9f75ef576f49269b">Matrix</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& vrt, <span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& vup, <span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& vpn);</div> +<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div> +<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="struct_matrix.html">Matrix</a>& <a class="code" href="struct_matrix.html#aea5a06385f646eb4a63929fae6fa3e14">operator = </a>(<span class="keyword">const</span> <a class="code" href="struct_matrix.html">Matrix</a>& m);</div> +<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="struct_matrix.html">Matrix</a>& <a class="code" href="struct_matrix.html#aac6dd563f8c6f859f3d0760f406a1a58">operator *= </a>(<span class="keyword">const</span> <a class="code" href="struct_matrix.html">Matrix</a>& m);</div> +<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div> +<div class="line"><a name="l00079"></a><span class="lineno"><a class="code" href="struct_matrix.html#ac6b0e8ce2c566a0379bd8da579d1cb45"> 79</a></span>  <span class="keywordtype">double</span> <a class="code" href="struct_matrix.html#ac6b0e8ce2c566a0379bd8da579d1cb45">operator() </a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_matrix.html#a5cab8c696d9347b3884df0661ffde8d2">elem</a>[i][j]; }</div> +<div class="line"><a name="l00080"></a><span class="lineno"><a class="code" href="struct_matrix.html#ad6c820c473b60706e10a7b43fa6575ee"> 80</a></span>  <span class="keywordtype">double</span>& <a class="code" href="struct_matrix.html#ac6b0e8ce2c566a0379bd8da579d1cb45">operator() </a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j) { <span class="keywordflow">return</span> <a class="code" href="struct_matrix.html#a5cab8c696d9347b3884df0661ffde8d2">elem</a>[i][j]; }</div> +<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div> +<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordtype">void</span> <a class="code" href="struct_matrix.html#a1f6446e74e72d4bc6cccf46f3fbf7536">Identity</a>();</div> +<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordtype">void</span> <a class="code" href="struct_matrix.html#a350d12361c31ec650e667e8120da7274">Transpose</a>();</div> +<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordtype">void</span> <a class="code" href="struct_matrix.html#ad48d4d8078b7c69984fd7aaa4a61275b">Rotate</a>(<span class="keywordtype">double</span> roll, <span class="keywordtype">double</span> pitch, <span class="keywordtype">double</span> yaw);</div> +<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordtype">void</span> <a class="code" href="struct_matrix.html#a023352aa2c1386a7ba4448f3d43332b6">Roll</a>(<span class="keywordtype">double</span> roll);</div> +<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordtype">void</span> <a class="code" href="struct_matrix.html#a3e2bffe4b3d999875653a0ffeb9970b5">Pitch</a>(<span class="keywordtype">double</span> pitch);</div> +<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordtype">void</span> <a class="code" href="struct_matrix.html#ab46d7353f782f0a9a93d16ace7095145">Yaw</a>(<span class="keywordtype">double</span> yaw);</div> +<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordtype">void</span> <a class="code" href="struct_matrix.html#abac777e8af319d45d091a5c187dba26f">ComputeEulerAngles</a>(<span class="keywordtype">double</span>& roll, <span class="keywordtype">double</span>& pitch, <span class="keywordtype">double</span>& yaw) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div> +<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordtype">double</span> <a class="code" href="struct_matrix.html#aabd1efff70d937f836b4ed57ca59caef">Cofactor</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordtype">void</span> <a class="code" href="struct_matrix.html#a008d1a5f99a91b477945fd7336ed6b0d">Invert</a>();</div> +<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div> +<div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="struct_matrix.html#ad20df3a74c649892c53ffb3b575aa166"> 93</a></span>  <a class="code" href="struct_matrix.html">Matrix</a> <a class="code" href="struct_matrix.html#ad20df3a74c649892c53ffb3b575aa166">Inverse</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="struct_matrix.html">Matrix</a> result(*<span class="keyword">this</span>);</div> +<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  result.<a class="code" href="struct_matrix.html#a008d1a5f99a91b477945fd7336ed6b0d">Invert</a>();</div> +<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">return</span> result;</div> +<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  }</div> +<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div> +<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="struct_matrix.html">Matrix</a> <a class="code" href="struct_matrix.html#a435aaecd9331c9ee02bdb5bba59b20a7">operator*</a>(<span class="keyword">const</span> <a class="code" href="struct_matrix.html">Matrix</a>& m) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="struct_matrix.html#a435aaecd9331c9ee02bdb5bba59b20a7">operator*</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a> & p) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="struct_vec3.html">Vec3</a> <a class="code" href="struct_matrix.html#a435aaecd9331c9ee02bdb5bba59b20a7">operator*</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& v) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div> +<div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="struct_matrix.html#a5cab8c696d9347b3884df0661ffde8d2"> 103</a></span>  <span class="keywordtype">double</span> <a class="code" href="struct_matrix.html#a5cab8c696d9347b3884df0661ffde8d2">elem</a>[3][3];</div> +<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div> +<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="keyword">private</span>:</div> +<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="struct_matrix.html#a2dba13c45127354c9f75ef576f49269b">Matrix</a>(<span class="keywordtype">int</span> no_init) { }</div> +<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> };</div> +<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div> +<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div> +<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="keyword">struct </span><a class="code" href="struct_vec2.html">Vec2</a></div> +<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> {</div> +<div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="struct_vec2.html#ac0704083206a820136db56dcf8db0e88"> 113</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="struct_vec2.html#ac0704083206a820136db56dcf8db0e88">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"Vec2"</span>; }</div> +<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div> +<div class="line"><a name="l00115"></a><span class="lineno"><a class="code" href="struct_vec2.html#a76080feed7005893ecc634f903cfbae0"> 115</a></span>  <a class="code" href="struct_vec2.html#a76080feed7005893ecc634f903cfbae0">Vec2</a>() { }</div> +<div class="line"><a name="l00116"></a><span class="lineno"><a class="code" href="struct_vec2.html#a5bde419cbdaac9a79ac0bb8fdf6632a8"> 116</a></span>  <a class="code" href="struct_vec2.html#a5bde419cbdaac9a79ac0bb8fdf6632a8">Vec2</a>(<span class="keywordtype">int</span> ix, <span class="keywordtype">int</span> iy) : <a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>((float) ix), <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>((float) iy) { }</div> +<div class="line"><a name="l00117"></a><span class="lineno"><a class="code" href="struct_vec2.html#a05f1e538edf0982cfa08de2b580ae437"> 117</a></span>  <a class="code" href="struct_vec2.html#a05f1e538edf0982cfa08de2b580ae437">Vec2</a>(<span class="keywordtype">float</span> ix, <span class="keywordtype">float</span> iy) : <a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>(ix), <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>(iy) { }</div> +<div class="line"><a name="l00118"></a><span class="lineno"><a class="code" href="struct_vec2.html#a8b28f3d385b209f322e9b181ef42cadc"> 118</a></span>  <a class="code" href="struct_vec2.html#a8b28f3d385b209f322e9b181ef42cadc">Vec2</a>(<span class="keywordtype">double</span> ix, <span class="keywordtype">double</span> iy) : <a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>((float) ix), <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>((float) iy) { }</div> +<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div> +<div class="line"><a name="l00120"></a><span class="lineno"><a class="code" href="struct_vec2.html#a8d27be3011e886c1c79a3c5915920c9b"> 120</a></span>  <span class="keyword">operator</span> <span class="keywordtype">void</span>*() <span class="keyword">const</span> { <span class="keywordflow">return</span> (<span class="keywordtype">void</span>*) (<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a> || <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>); }</div> +<div class="line"><a name="l00121"></a><span class="lineno"><a class="code" href="struct_vec2.html#a44ee5bf0b746376b85ea8d65c0b546c3"> 121</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_vec2.html#a44ee5bf0b746376b85ea8d65c0b546c3">operator==</a>(<span class="keyword">const</span> <a class="code" href="struct_vec2.html">Vec2</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>==p.<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a> && <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>==p.<a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>; }</div> +<div class="line"><a name="l00122"></a><span class="lineno"><a class="code" href="struct_vec2.html#acbbe082b9c3b7fbf57423004d7b6f79e"> 122</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_vec2.html#acbbe082b9c3b7fbf57423004d7b6f79e">operator!=</a>(<span class="keyword">const</span> <a class="code" href="struct_vec2.html">Vec2</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>!=p.<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a> || <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>!=p.<a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>; }</div> +<div class="line"><a name="l00123"></a><span class="lineno"><a class="code" href="struct_vec2.html#ad07c26d1130d4aa1ce00a900967fea5c"> 123</a></span>  <a class="code" href="struct_vec2.html">Vec2</a> <a class="code" href="struct_vec2.html#ad07c26d1130d4aa1ce00a900967fea5c">operator+ </a>(<span class="keyword">const</span> <a class="code" href="struct_vec2.html">Vec2</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec2.html#a76080feed7005893ecc634f903cfbae0">Vec2</a>(<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>+p.<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>, <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>+p.<a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>); }</div> +<div class="line"><a name="l00124"></a><span class="lineno"><a class="code" href="struct_vec2.html#aedb0de6beb8474d1c04f33a5b69dfab8"> 124</a></span>  <a class="code" href="struct_vec2.html">Vec2</a> <a class="code" href="struct_vec2.html#a39640496ed941cf3d7e8cc7ee96eea36">operator- </a>(<span class="keyword">const</span> <a class="code" href="struct_vec2.html">Vec2</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec2.html#a76080feed7005893ecc634f903cfbae0">Vec2</a>(<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>-p.<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>, <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>-p.<a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>); }</div> +<div class="line"><a name="l00125"></a><span class="lineno"><a class="code" href="struct_vec2.html#a39640496ed941cf3d7e8cc7ee96eea36"> 125</a></span>  <a class="code" href="struct_vec2.html">Vec2</a> <a class="code" href="struct_vec2.html#a39640496ed941cf3d7e8cc7ee96eea36">operator- </a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec2.html#a76080feed7005893ecc634f903cfbae0">Vec2</a>(-<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>, -<a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>); }</div> +<div class="line"><a name="l00126"></a><span class="lineno"><a class="code" href="struct_vec2.html#a9937864d4046a4bf43a393d4ac0ed424"> 126</a></span>  <a class="code" href="struct_vec2.html">Vec2</a> <a class="code" href="struct_vec2.html#a9937864d4046a4bf43a393d4ac0ed424">operator* </a>(<span class="keywordtype">float</span> s)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec2.html#a76080feed7005893ecc634f903cfbae0">Vec2</a>(<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>*s, <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>*s); }</div> +<div class="line"><a name="l00127"></a><span class="lineno"><a class="code" href="struct_vec2.html#a4205fa5e191261c3215d333e744287a9"> 127</a></span>  <a class="code" href="struct_vec2.html">Vec2</a> <a class="code" href="struct_vec2.html#a4205fa5e191261c3215d333e744287a9">operator/ </a>(<span class="keywordtype">float</span> s)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec2.html#a76080feed7005893ecc634f903cfbae0">Vec2</a>(<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>/s, <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>/s); }</div> +<div class="line"><a name="l00128"></a><span class="lineno"><a class="code" href="struct_vec2.html#a9dca43bf0d06865c8ea5d5420635af3b"> 128</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_vec2.html#a9dca43bf0d06865c8ea5d5420635af3b">operator*</a>(<span class="keyword">const</span> <a class="code" href="struct_vec2.html">Vec2</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>*p.<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a> + <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>*p.<a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>); }</div> +<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div> +<div class="line"><a name="l00130"></a><span class="lineno"><a class="code" href="struct_vec2.html#a7b530996ad560b1f351f0010718cbe53"> 130</a></span>  <a class="code" href="struct_vec2.html">Vec2</a>& <a class="code" href="struct_vec2.html#a7b530996ad560b1f351f0010718cbe53">operator= </a>(<span class="keyword">const</span> <a class="code" href="struct_vec2.html">Vec2</a>& p) { <a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a> =p.<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>; <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a> =p.<a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00131"></a><span class="lineno"><a class="code" href="struct_vec2.html#a890c36584c072a19ad34f179bdd6b2b0"> 131</a></span>  <a class="code" href="struct_vec2.html">Vec2</a>& <a class="code" href="struct_vec2.html#a890c36584c072a19ad34f179bdd6b2b0">operator+=</a>(<span class="keyword">const</span> <a class="code" href="struct_vec2.html">Vec2</a>& p) { <a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>+=p.<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>; <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>+=p.<a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00132"></a><span class="lineno"><a class="code" href="struct_vec2.html#a7f132d3a0d28e06609b191ae73983ba6"> 132</a></span>  <a class="code" href="struct_vec2.html">Vec2</a>& <a class="code" href="struct_vec2.html#a7f132d3a0d28e06609b191ae73983ba6">operator-=</a>(<span class="keyword">const</span> <a class="code" href="struct_vec2.html">Vec2</a>& p) { <a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>-=p.<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>; <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>-=p.<a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00133"></a><span class="lineno"><a class="code" href="struct_vec2.html#a579a80f68497014e300b45b9824998a1"> 133</a></span>  <a class="code" href="struct_vec2.html">Vec2</a>& <a class="code" href="struct_vec2.html#a579a80f68497014e300b45b9824998a1">operator*=</a>(<span class="keywordtype">float</span> s) { <a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>*=s; <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>*=s; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00134"></a><span class="lineno"><a class="code" href="struct_vec2.html#ac2c616f103993a23827a1b5ab12e9886"> 134</a></span>  <a class="code" href="struct_vec2.html">Vec2</a>& <a class="code" href="struct_vec2.html#ac2c616f103993a23827a1b5ab12e9886">operator/=</a>(<span class="keywordtype">float</span> s) { <a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>/=s; <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>/=s; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div> +<div class="line"><a name="l00136"></a><span class="lineno"><a class="code" href="struct_vec2.html#a83adaf3f787cfb5de4576073898b93db"> 136</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_vec2.html#a83adaf3f787cfb5de4576073898b93db">length</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<span class="keywordtype">float</span>) sqrt(<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>*<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>+<a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>*<a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>); }</div> +<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordtype">float</span> <a class="code" href="struct_vec2.html#a8b020be41d8606cc978031c0a28cb067">Normalize</a>();</div> +<div class="line"><a name="l00138"></a><span class="lineno"><a class="code" href="struct_vec2.html#a0ffe60c3ba742162f6ba00be4d74274e"> 138</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_vec2.html#a0ffe60c3ba742162f6ba00be4d74274e">dot</a>(<span class="keyword">const</span> <a class="code" href="struct_vec2.html">Vec2</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>*p.<a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a> + <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>*p.<a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>); }</div> +<div class="line"><a name="l00139"></a><span class="lineno"><a class="code" href="struct_vec2.html#a7f2ccbaa7efb5d57ad9b37f8476651d0"> 139</a></span>  <a class="code" href="struct_vec2.html">Vec2</a> <a class="code" href="struct_vec2.html#a7f2ccbaa7efb5d57ad9b37f8476651d0">normal</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec2.html#a76080feed7005893ecc634f903cfbae0">Vec2</a>(-<a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>, <a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>); }</div> +<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> </div> +<div class="line"><a name="l00141"></a><span class="lineno"><a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094"> 141</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_vec2.html#adf8ee322d4b4bcc04146762c018d731f">x</a>, <a class="code" href="struct_vec2.html#a30543787e62f6d915543cf1dfb04c094">y</a>;</div> +<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> };</div> +<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div> +<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div> +<div class="line"><a name="l00146"></a><span class="lineno"><a class="code" href="struct_vec3.html"> 146</a></span> <span class="keyword">struct </span><a class="code" href="struct_vec3.html">Vec3</a></div> +<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> {</div> +<div class="line"><a name="l00148"></a><span class="lineno"><a class="code" href="struct_vec3.html#ad8202dede4b05984ecf5ce0eec6d5e3a"> 148</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="struct_vec3.html#ad8202dede4b05984ecf5ce0eec6d5e3a">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"Vec3"</span>; }</div> +<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div> +<div class="line"><a name="l00150"></a><span class="lineno"><a class="code" href="struct_vec3.html#aae7a1ffaa1108a30c281da216d1cd312"> 150</a></span>  <a class="code" href="struct_vec3.html#aae7a1ffaa1108a30c281da216d1cd312">Vec3</a>() { }</div> +<div class="line"><a name="l00151"></a><span class="lineno"><a class="code" href="struct_vec3.html#a64844cef1a2d37a1f59b22ba0ce4e75b"> 151</a></span>  <a class="code" href="struct_vec3.html#a64844cef1a2d37a1f59b22ba0ce4e75b">Vec3</a>(<span class="keywordtype">int</span> ix, <span class="keywordtype">int</span> iy, <span class="keywordtype">int</span> iz) : <a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>((float) ix), <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>((float) iy), <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>((float) iz) { }</div> +<div class="line"><a name="l00152"></a><span class="lineno"><a class="code" href="struct_vec3.html#a94fc70ea90b263ed3484ef057c8eec11"> 152</a></span>  <a class="code" href="struct_vec3.html#a94fc70ea90b263ed3484ef057c8eec11">Vec3</a>(<span class="keywordtype">float</span> ix, <span class="keywordtype">float</span> iy, <span class="keywordtype">float</span> iz) : <a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>(ix), <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>(iy), <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>(iz) { }</div> +<div class="line"><a name="l00153"></a><span class="lineno"><a class="code" href="struct_vec3.html#af27944aa997663ae3d38de5b948af11f"> 153</a></span>  <a class="code" href="struct_vec3.html#af27944aa997663ae3d38de5b948af11f">Vec3</a>(<span class="keywordtype">double</span> ix, <span class="keywordtype">double</span> iy, <span class="keywordtype">double</span> iz) : <a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>((float) ix), <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>((float) iy), <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>((float) iz) { }</div> +<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div> +<div class="line"><a name="l00155"></a><span class="lineno"><a class="code" href="struct_vec3.html#aa1efe7f1b8de3ddb929ddb6881180d3a"> 155</a></span>  <span class="keyword">operator</span> <span class="keywordtype">void</span>*() <span class="keyword">const</span> { <span class="keywordflow">return</span> (<span class="keywordtype">void</span>*) (<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a> || <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a> || <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>); }</div> +<div class="line"><a name="l00156"></a><span class="lineno"><a class="code" href="struct_vec3.html#a47730ad309f57da031b249c83cdd6b75"> 156</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_vec3.html#a47730ad309f57da031b249c83cdd6b75">operator==</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>==p.<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a> && <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>==p.<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a> && <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>==p.<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>; }</div> +<div class="line"><a name="l00157"></a><span class="lineno"><a class="code" href="struct_vec3.html#a0f6392986d15d12daa445cfc5a0b1fa4"> 157</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_vec3.html#a0f6392986d15d12daa445cfc5a0b1fa4">operator!=</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>!=p.<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a> || <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>!=p.<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a> || <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>!=p.<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>; }</div> +<div class="line"><a name="l00158"></a><span class="lineno"><a class="code" href="struct_vec3.html#adf0d9b739c9d5e159f338024e191fd6f"> 158</a></span>  <a class="code" href="struct_vec3.html">Vec3</a> <a class="code" href="struct_vec3.html#adf0d9b739c9d5e159f338024e191fd6f">operator+ </a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec3.html#aae7a1ffaa1108a30c281da216d1cd312">Vec3</a>(<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>+p.<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>, <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>+p.<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>, <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>+p.<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>); }</div> +<div class="line"><a name="l00159"></a><span class="lineno"><a class="code" href="struct_vec3.html#a03d7c3c6a281575fb8b2393622bf8b33"> 159</a></span>  <a class="code" href="struct_vec3.html">Vec3</a> <a class="code" href="struct_vec3.html#a409f2d24c2f1df322ff7c44cebfd5094">operator- </a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec3.html#aae7a1ffaa1108a30c281da216d1cd312">Vec3</a>(<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>-p.<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>, <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>-p.<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>, <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>-p.<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>); }</div> +<div class="line"><a name="l00160"></a><span class="lineno"><a class="code" href="struct_vec3.html#a409f2d24c2f1df322ff7c44cebfd5094"> 160</a></span>  <a class="code" href="struct_vec3.html">Vec3</a> <a class="code" href="struct_vec3.html#a409f2d24c2f1df322ff7c44cebfd5094">operator- </a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec3.html#aae7a1ffaa1108a30c281da216d1cd312">Vec3</a>(-<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>, -<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>, -<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>); }</div> +<div class="line"><a name="l00161"></a><span class="lineno"><a class="code" href="struct_vec3.html#aebd448cbed356f0915c8217fa25f2ca7"> 161</a></span>  <a class="code" href="struct_vec3.html">Vec3</a> <a class="code" href="struct_vec3.html#aebd448cbed356f0915c8217fa25f2ca7">operator* </a>(<span class="keywordtype">float</span> s)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec3.html#aae7a1ffaa1108a30c281da216d1cd312">Vec3</a>(<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>*s, <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>*s, <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>*s); }</div> +<div class="line"><a name="l00162"></a><span class="lineno"><a class="code" href="struct_vec3.html#a5e83e89e3e0807772c13e031a35ef7e0"> 162</a></span>  <a class="code" href="struct_vec3.html">Vec3</a> <a class="code" href="struct_vec3.html#a5e83e89e3e0807772c13e031a35ef7e0">operator/ </a>(<span class="keywordtype">float</span> s)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec3.html#aae7a1ffaa1108a30c281da216d1cd312">Vec3</a>(<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>/s, <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>/s, <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>/s); }</div> +<div class="line"><a name="l00163"></a><span class="lineno"><a class="code" href="struct_vec3.html#a66aede53931635bb02941951adb58d69"> 163</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_vec3.html#aebd448cbed356f0915c8217fa25f2ca7">operator* </a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>*p.<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a> + <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>*p.<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a> + <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>*p.<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>); }</div> +<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <a class="code" href="struct_vec3.html">Vec3</a> <a class="code" href="struct_vec3.html#aebd448cbed356f0915c8217fa25f2ca7">operator* </a>(<span class="keyword">const</span> <a class="code" href="struct_matrix.html">Matrix</a>&) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div> +<div class="line"><a name="l00166"></a><span class="lineno"><a class="code" href="struct_vec3.html#ae68edaf4528435cac5fdc577342a8aa9"> 166</a></span>  <a class="code" href="struct_vec3.html">Vec3</a>& <a class="code" href="struct_vec3.html#ae68edaf4528435cac5fdc577342a8aa9">operator= </a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& p) { <a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a> =p.<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>; <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a> =p.<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>; <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a> =p.<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00167"></a><span class="lineno"><a class="code" href="struct_vec3.html#aba8a9c29f892795098cf38d66ba1d834"> 167</a></span>  <a class="code" href="struct_vec3.html">Vec3</a>& <a class="code" href="struct_vec3.html#aba8a9c29f892795098cf38d66ba1d834">operator+=</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& p) { <a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>+=p.<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>; <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>+=p.<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>; <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>+=p.<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00168"></a><span class="lineno"><a class="code" href="struct_vec3.html#ab544f63027f61fbd2d88bed9e9209d03"> 168</a></span>  <a class="code" href="struct_vec3.html">Vec3</a>& <a class="code" href="struct_vec3.html#ab544f63027f61fbd2d88bed9e9209d03">operator-=</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& p) { <a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>-=p.<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>; <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>-=p.<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>; <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>-=p.<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00169"></a><span class="lineno"><a class="code" href="struct_vec3.html#aa8e89c357d3f284ec2cfdc4e84cb674d"> 169</a></span>  <a class="code" href="struct_vec3.html">Vec3</a>& <a class="code" href="struct_vec3.html#aa8e89c357d3f284ec2cfdc4e84cb674d">operator*=</a>(<span class="keywordtype">float</span> s) { <a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>*=s; <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>*=s; <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>*=s; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00170"></a><span class="lineno"><a class="code" href="struct_vec3.html#a469ea172cbf97dda950be796e27a5806"> 170</a></span>  <a class="code" href="struct_vec3.html">Vec3</a>& <a class="code" href="struct_vec3.html#a469ea172cbf97dda950be796e27a5806">operator/=</a>(<span class="keywordtype">float</span> s) { <a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>/=s; <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>/=s; <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>/=s; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> </div> +<div class="line"><a name="l00172"></a><span class="lineno"><a class="code" href="struct_vec3.html#a1497eb94e9d6bc0e8a14003fbc61eaf1"> 172</a></span>  <span class="keywordtype">void</span> <a class="code" href="struct_vec3.html#a1497eb94e9d6bc0e8a14003fbc61eaf1">SwapYZ</a>() { <span class="keywordtype">float</span> t = <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>; <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a> = <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>; <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a> = t; }</div> +<div class="line"><a name="l00173"></a><span class="lineno"><a class="code" href="struct_vec3.html#a17b354d08f44a6cad8e435aea73ae7f9"> 173</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_vec3.html#a17b354d08f44a6cad8e435aea73ae7f9">length</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<span class="keywordtype">float</span>) sqrt(<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>*<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>+<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>*<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>+<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>*<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>); }</div> +<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordtype">float</span> <a class="code" href="struct_vec3.html#a269d13893a87a616b6709e5fc3d34d4f">Normalize</a>();</div> +<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div> +<div class="line"><a name="l00176"></a><span class="lineno"><a class="code" href="struct_vec3.html#a74eceb1d3261bf885fd50b349b78e26a"> 176</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_vec3.html#a74eceb1d3261bf885fd50b349b78e26a">dot</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>*p.<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a> + <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>*p.<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a> + <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>*p.<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>); }</div> +<div class="line"><a name="l00177"></a><span class="lineno"><a class="code" href="struct_vec3.html#a85bfd45b956fdd79f7686b9d220576f5"> 177</a></span>  <a class="code" href="struct_vec3.html">Vec3</a> <a class="code" href="struct_vec3.html#a85bfd45b956fdd79f7686b9d220576f5">cross</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& v)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec3.html#aae7a1ffaa1108a30c281da216d1cd312">Vec3</a>((<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>*v.<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>) - (<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>*v.<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>),</div> +<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  (<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>*v.<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>) - (<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>*v.<a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>),</div> +<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  (<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>*v.<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>) - (<a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>*v.<a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>)); }</div> +<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div> +<div class="line"><a name="l00181"></a><span class="lineno"><a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388"> 181</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_vec3.html#a2814580e9b9372738c0a61197ea46b51">x</a>, <a class="code" href="struct_vec3.html#abc1d241232cb04aa98217a942402ae68">y</a>, <a class="code" href="struct_vec3.html#a64f3f00cd2dd9076999eeb2f05210388">z</a>;</div> +<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> };</div> +<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div> +<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="keywordtype">double</span> <a class="code" href="_geometry_8cpp.html#ad3944c476d46188249376f290a934d21">ClosestApproachTime</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& loc1, <span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& vel1,</div> +<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& loc2, <span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& vel2);</div> +<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div> +<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div> +<div class="line"><a name="l00189"></a><span class="lineno"><a class="code" href="struct_point.html"> 189</a></span> <span class="keyword">struct </span><a class="code" href="struct_point.html">Point</a></div> +<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> {</div> +<div class="line"><a name="l00191"></a><span class="lineno"><a class="code" href="struct_point.html#a6bae683295f2334f82120dcaca3a4692"> 191</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="struct_point.html#a6bae683295f2334f82120dcaca3a4692">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"Point"</span>; }</div> +<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div> +<div class="line"><a name="l00193"></a><span class="lineno"><a class="code" href="struct_point.html#ad92f2337b839a94ce97dcdb439b4325a"> 193</a></span>  <a class="code" href="struct_point.html#ad92f2337b839a94ce97dcdb439b4325a">Point</a>() : <a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>(0), <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>(0), <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>(0) { }</div> +<div class="line"><a name="l00194"></a><span class="lineno"><a class="code" href="struct_point.html#aa8825e3237d1cbe5afc9d668467b68c2"> 194</a></span>  <a class="code" href="struct_point.html#aa8825e3237d1cbe5afc9d668467b68c2">Point</a>(<span class="keywordtype">double</span> ix, <span class="keywordtype">double</span> iy, <span class="keywordtype">double</span> iz) : <a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>(ix), <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>(iy), <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>(iz) { }</div> +<div class="line"><a name="l00195"></a><span class="lineno"><a class="code" href="struct_point.html#af0c0f20db1616447bc78184ed537ef6e"> 195</a></span>  <a class="code" href="struct_point.html#af0c0f20db1616447bc78184ed537ef6e">Point</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& p) : <a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>(p.<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>), <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>(p.<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>), <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>(p.<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>) { }</div> +<div class="line"><a name="l00196"></a><span class="lineno"><a class="code" href="struct_point.html#a31782c605625bfba974e85a5837181f8"> 196</a></span>  <a class="code" href="struct_point.html#a31782c605625bfba974e85a5837181f8">Point</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& v) : <a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>(v.<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>), <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>(v.<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>), <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>(v.<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>) { }</div> +<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div> +<div class="line"><a name="l00198"></a><span class="lineno"><a class="code" href="struct_point.html#ab976f8da6c6584d3b1182454d93237e2"> 198</a></span>  <span class="keyword">operator</span> <a class="code" href="struct_vec3.html">Vec3</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_vec3.html">Vec3</a>((<span class="keywordtype">float</span>) <a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>, (<span class="keywordtype">float</span>) <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>, (<span class="keywordtype">float</span>) <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>); }</div> +<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div> +<div class="line"><a name="l00200"></a><span class="lineno"><a class="code" href="struct_point.html#a07d6d972274891059cbfc43f54f1ef48"> 200</a></span>  <span class="keyword">operator</span> <span class="keywordtype">void</span>*() <span class="keyword">const</span> { <span class="keywordflow">return</span> (<span class="keywordtype">void</span>*) (<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a> || <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a> || <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>); }</div> +<div class="line"><a name="l00201"></a><span class="lineno"><a class="code" href="struct_point.html#a3ec7c831e40462912859382a6701a7cc"> 201</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_point.html#a3ec7c831e40462912859382a6701a7cc">operator==</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>==p.<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a> && <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>==p.<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a> && <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>==p.<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>; }</div> +<div class="line"><a name="l00202"></a><span class="lineno"><a class="code" href="struct_point.html#af5aeeb46141ec49d90c2052a1d2c8f96"> 202</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_point.html#af5aeeb46141ec49d90c2052a1d2c8f96">operator!=</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>!=p.<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a> || <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>!=p.<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a> || <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>!=p.<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>; }</div> +<div class="line"><a name="l00203"></a><span class="lineno"><a class="code" href="struct_point.html#a78421c6bc6fe671fa5ee80e99c0b7284"> 203</a></span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="struct_point.html#a78421c6bc6fe671fa5ee80e99c0b7284">operator+ </a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_point.html#ad92f2337b839a94ce97dcdb439b4325a">Point</a>(<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>+p.<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>, <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>+p.<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>, <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>+p.<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>); }</div> +<div class="line"><a name="l00204"></a><span class="lineno"><a class="code" href="struct_point.html#a6a869eababaaf863740e3196b9ca6780"> 204</a></span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="struct_point.html#a99380b62b682c34a88713556df1287cf">operator- </a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_point.html#ad92f2337b839a94ce97dcdb439b4325a">Point</a>(<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>-p.<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>, <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>-p.<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>, <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>-p.<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>); }</div> +<div class="line"><a name="l00205"></a><span class="lineno"><a class="code" href="struct_point.html#a99380b62b682c34a88713556df1287cf"> 205</a></span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="struct_point.html#a99380b62b682c34a88713556df1287cf">operator- </a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_point.html#ad92f2337b839a94ce97dcdb439b4325a">Point</a>(-<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>, -<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>, -<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>); }</div> +<div class="line"><a name="l00206"></a><span class="lineno"><a class="code" href="struct_point.html#a600cf33930378261575cc785f9f16fba"> 206</a></span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="struct_point.html#a600cf33930378261575cc785f9f16fba">operator* </a>(<span class="keywordtype">double</span> s)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_point.html#ad92f2337b839a94ce97dcdb439b4325a">Point</a>(<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>*s, <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>*s, <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>*s); }</div> +<div class="line"><a name="l00207"></a><span class="lineno"><a class="code" href="struct_point.html#a880412f48ca7069d512cbf8b1046d6c7"> 207</a></span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="struct_point.html#a880412f48ca7069d512cbf8b1046d6c7">operator/ </a>(<span class="keywordtype">double</span> s)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_point.html#ad92f2337b839a94ce97dcdb439b4325a">Point</a>(<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>/s, <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>/s, <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>/s); }</div> +<div class="line"><a name="l00208"></a><span class="lineno"><a class="code" href="struct_point.html#a0a28bb13581e50a4cc3ca4108af613b3"> 208</a></span>  <span class="keywordtype">double</span> <a class="code" href="struct_point.html#a0a28bb13581e50a4cc3ca4108af613b3">operator*</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>*p.<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a> + <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>*p.<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a> + <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>*p.<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>); }</div> +<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="struct_point.html#a600cf33930378261575cc785f9f16fba">operator* </a>(<span class="keyword">const</span> <a class="code" href="struct_matrix.html">Matrix</a>& m) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div> +<div class="line"><a name="l00211"></a><span class="lineno"><a class="code" href="struct_point.html#a79ef74eec8fb41f7ec213beea9b1c3ac"> 211</a></span>  <a class="code" href="struct_point.html">Point</a>& <a class="code" href="struct_point.html#a79ef74eec8fb41f7ec213beea9b1c3ac">operator= </a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& p) { <a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a> =p.<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>; <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a> =p.<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>; <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a> =p.<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00212"></a><span class="lineno"><a class="code" href="struct_point.html#a39e9fcbe976c10685aee99ed4ed48b96"> 212</a></span>  <a class="code" href="struct_point.html">Point</a>& <a class="code" href="struct_point.html#a39e9fcbe976c10685aee99ed4ed48b96">operator+=</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& p) { <a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>+=p.<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>; <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>+=p.<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>; <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>+=p.<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00213"></a><span class="lineno"><a class="code" href="struct_point.html#aca49d0368e9813d728a65015075f597f"> 213</a></span>  <a class="code" href="struct_point.html">Point</a>& <a class="code" href="struct_point.html#aca49d0368e9813d728a65015075f597f">operator-=</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& p) { <a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>-=p.<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>; <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>-=p.<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>; <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>-=p.<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00214"></a><span class="lineno"><a class="code" href="struct_point.html#a881c357863dd8261b6fdefde2d48a752"> 214</a></span>  <a class="code" href="struct_point.html">Point</a>& <a class="code" href="struct_point.html#a881c357863dd8261b6fdefde2d48a752">operator*=</a>(<span class="keywordtype">double</span> s) { <a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>*=s; <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>*=s; <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>*=s; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00215"></a><span class="lineno"><a class="code" href="struct_point.html#ae39c92e89fc1adf8073bd7103095d6dd"> 215</a></span>  <a class="code" href="struct_point.html">Point</a>& <a class="code" href="struct_point.html#ae39c92e89fc1adf8073bd7103095d6dd">operator/=</a>(<span class="keywordtype">double</span> s) { <a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>/=s; <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>/=s; <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>/=s; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> </div> +<div class="line"><a name="l00217"></a><span class="lineno"><a class="code" href="struct_point.html#a8ebcce847b8c214b7351904ce60f5518"> 217</a></span>  <span class="keywordtype">double</span> <a class="code" href="struct_point.html#a8ebcce847b8c214b7351904ce60f5518">length</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> sqrt(<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>*<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>+<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>*<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>+<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>*<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>); }</div> +<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordtype">double</span> <a class="code" href="struct_point.html#a6efd403e2a6c0aa686e278d244d5e525">Normalize</a>();</div> +<div class="line"><a name="l00219"></a><span class="lineno"><a class="code" href="struct_point.html#aaee55509f748fd1e5357dff47cee6212"> 219</a></span>  <span class="keywordtype">void</span> <a class="code" href="struct_point.html#aaee55509f748fd1e5357dff47cee6212">SwapYZ</a>() { <span class="keywordtype">double</span> t = <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>; <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a> = <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>; <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a> = t; }</div> +<div class="line"><a name="l00220"></a><span class="lineno"><a class="code" href="struct_point.html#a2a1fb1f8b18b27891423e3362561d6b0"> 220</a></span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="struct_point.html#a2a1fb1f8b18b27891423e3362561d6b0">OtherHand</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_point.html#ad92f2337b839a94ce97dcdb439b4325a">Point</a>(-<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>, <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>, <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>); }</div> +<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div> +<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keywordtype">void</span> <a class="code" href="struct_point.html#aafa2cfc2d9e6970d88e6c907a439b9f9">SetElement</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">double</span> v);</div> +<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> </div> +<div class="line"><a name="l00224"></a><span class="lineno"><a class="code" href="struct_point.html#aa51050f8b9868c12b1a9d063e8555d05"> 224</a></span>  <span class="keywordtype">double</span> <a class="code" href="struct_point.html#aa51050f8b9868c12b1a9d063e8555d05">dot</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>*p.<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a> + <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>*p.<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a> + <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>*p.<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>); }</div> +<div class="line"><a name="l00225"></a><span class="lineno"><a class="code" href="struct_point.html#ae600bcc9fe480e782a05fade3b78f8c0"> 225</a></span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="struct_point.html#ae600bcc9fe480e782a05fade3b78f8c0">cross</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_point.html#ad92f2337b839a94ce97dcdb439b4325a">Point</a>((<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>*p.<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>) - (<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>*p.<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>),</div> +<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  (<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>*p.<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>) - (<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>*p.<a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>),</div> +<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  (<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>*p.<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>) - (<a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>*p.<a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>)); }</div> +<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> </div> +<div class="line"><a name="l00229"></a><span class="lineno"><a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded"> 229</a></span>  <span class="keywordtype">double</span> <a class="code" href="struct_point.html#ab99c56589bc8ad5fa5071387110a5bc7">x</a>, <a class="code" href="struct_point.html#afa38be143ae800e6ad69ce8ed4df62d8">y</a>, <a class="code" href="struct_point.html#a05ba3b1dfcb19430582ae953cbbfbded">z</a>;</div> +<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> };</div> +<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> </div> +<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="keywordtype">double</span> <a class="code" href="_geometry_8cpp.html#ad3944c476d46188249376f290a934d21">ClosestApproachTime</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& loc1, <span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& vel1,</div> +<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& loc2, <span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& vel2);</div> +<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> </div> +<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> </div> +<div class="line"><a name="l00237"></a><span class="lineno"><a class="code" href="struct_quaternion.html"> 237</a></span> <span class="keyword">struct </span><a class="code" href="struct_quaternion.html">Quaternion</a></div> +<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> {</div> +<div class="line"><a name="l00239"></a><span class="lineno"><a class="code" href="struct_quaternion.html#a4026fde31354d5eb29991276b5aee7f0"> 239</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="struct_quaternion.html#a4026fde31354d5eb29991276b5aee7f0">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"Quaternion"</span>; }</div> +<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> </div> +<div class="line"><a name="l00241"></a><span class="lineno"><a class="code" href="struct_quaternion.html#abcc01358aada56ea5f0db4da18aaf77d"> 241</a></span>  <a class="code" href="struct_quaternion.html#abcc01358aada56ea5f0db4da18aaf77d">Quaternion</a>() : <a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>(0), <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>(0), <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>(0), <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>(0) { }</div> +<div class="line"><a name="l00242"></a><span class="lineno"><a class="code" href="struct_quaternion.html#ae6e4b340aece8095c6bf1a5eee191405"> 242</a></span>  <a class="code" href="struct_quaternion.html#abcc01358aada56ea5f0db4da18aaf77d">Quaternion</a>(<span class="keywordtype">double</span> ix, </div> +<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordtype">double</span> iy, </div> +<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordtype">double</span> iz,</div> +<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordtype">double</span> iw) : <a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>(ix), <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>(iy), <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>(iz), <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>(iw) { }</div> +<div class="line"><a name="l00246"></a><span class="lineno"><a class="code" href="struct_quaternion.html#ab3b8862f9fd86c7ebb426b4940d08b39"> 246</a></span>  <a class="code" href="struct_quaternion.html#ab3b8862f9fd86c7ebb426b4940d08b39">Quaternion</a>(<span class="keyword">const</span> <a class="code" href="struct_quaternion.html">Quaternion</a>& q) : <a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>(q.<a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>), <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>(q.<a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>), <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>(q.<a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>), <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>(q.<a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>) { }</div> +<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> </div> +<div class="line"><a name="l00248"></a><span class="lineno"><a class="code" href="struct_quaternion.html#abd0dcd0a9ce67a92cb2af4d942b19fa9"> 248</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_quaternion.html#abd0dcd0a9ce67a92cb2af4d942b19fa9">operator==</a>(<span class="keyword">const</span> <a class="code" href="struct_quaternion.html">Quaternion</a>& q)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>==q.<a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a> && <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>==q.<a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a> && <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>==q.<a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a> && <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>==q.<a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>; }</div> +<div class="line"><a name="l00249"></a><span class="lineno"><a class="code" href="struct_quaternion.html#a0beb179009753e467bd717e0ac0982d0"> 249</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_quaternion.html#a0beb179009753e467bd717e0ac0982d0">operator!=</a>(<span class="keyword">const</span> <a class="code" href="struct_quaternion.html">Quaternion</a>& q)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>!=q.<a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a> || <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>!=q.<a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a> || <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>!=q.<a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a> || <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>!=q.<a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>; }</div> +<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> </div> +<div class="line"><a name="l00251"></a><span class="lineno"><a class="code" href="struct_quaternion.html#a0805649e775e55063b1c2ea7ebfc6553"> 251</a></span>  <a class="code" href="struct_quaternion.html">Quaternion</a> <a class="code" href="struct_quaternion.html#a0805649e775e55063b1c2ea7ebfc6553">operator+ </a>(<span class="keyword">const</span> <a class="code" href="struct_quaternion.html">Quaternion</a>& q)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_quaternion.html#abcc01358aada56ea5f0db4da18aaf77d">Quaternion</a>(<a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>+q.<a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>, <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>+q.<a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>, <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>+q.<a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>, <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>+q.<a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>); }</div> +<div class="line"><a name="l00252"></a><span class="lineno"><a class="code" href="struct_quaternion.html#aa3f94b80ce9421658844c7b2236354e3"> 252</a></span>  <a class="code" href="struct_quaternion.html">Quaternion</a> <a class="code" href="struct_quaternion.html#a0d062e054d931d567aedab390706fc97">operator- </a>(<span class="keyword">const</span> <a class="code" href="struct_quaternion.html">Quaternion</a>& q)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_quaternion.html#abcc01358aada56ea5f0db4da18aaf77d">Quaternion</a>(<a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>-q.<a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>, <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>-q.<a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>, <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>-q.<a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>, <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>-q.<a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>); }</div> +<div class="line"><a name="l00253"></a><span class="lineno"><a class="code" href="struct_quaternion.html#a0d062e054d931d567aedab390706fc97"> 253</a></span>  <a class="code" href="struct_quaternion.html">Quaternion</a> <a class="code" href="struct_quaternion.html#a0d062e054d931d567aedab390706fc97">operator- </a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_quaternion.html#abcc01358aada56ea5f0db4da18aaf77d">Quaternion</a>(-<a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>, -<a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>, -<a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>, -<a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>); }</div> +<div class="line"><a name="l00254"></a><span class="lineno"><a class="code" href="struct_quaternion.html#a20823b8d2c6e47e19f33e427b76a7831"> 254</a></span>  <a class="code" href="struct_quaternion.html">Quaternion</a> <a class="code" href="struct_quaternion.html#a20823b8d2c6e47e19f33e427b76a7831">operator* </a>(<span class="keywordtype">double</span> s)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_quaternion.html#abcc01358aada56ea5f0db4da18aaf77d">Quaternion</a>(<a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>*s, <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>*s, <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>*s, <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>*s); }</div> +<div class="line"><a name="l00255"></a><span class="lineno"><a class="code" href="struct_quaternion.html#a6930d9738c6b3d84c279ac3e1d4f90c5"> 255</a></span>  <a class="code" href="struct_quaternion.html">Quaternion</a> <a class="code" href="struct_quaternion.html#a6930d9738c6b3d84c279ac3e1d4f90c5">operator/ </a>(<span class="keywordtype">double</span> s)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_quaternion.html#abcc01358aada56ea5f0db4da18aaf77d">Quaternion</a>(<a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>/s, <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>/s, <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>/s, <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>/s); }</div> +<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> </div> +<div class="line"><a name="l00257"></a><span class="lineno"><a class="code" href="struct_quaternion.html#a8a2ba5a448b8aed741e54bef6ea790bc"> 257</a></span>  <a class="code" href="struct_quaternion.html">Quaternion</a>& <a class="code" href="struct_quaternion.html#a8a2ba5a448b8aed741e54bef6ea790bc">operator= </a>(<span class="keyword">const</span> <a class="code" href="struct_quaternion.html">Quaternion</a>& q) { <a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a> =q.<a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>; <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a> =q.<a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>; <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a> =q.<a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>; <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a> =q.<a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00258"></a><span class="lineno"><a class="code" href="struct_quaternion.html#a0a2fde4804026ab2353918547154e665"> 258</a></span>  <a class="code" href="struct_quaternion.html">Quaternion</a>& <a class="code" href="struct_quaternion.html#a0a2fde4804026ab2353918547154e665">operator+=</a>(<span class="keyword">const</span> <a class="code" href="struct_quaternion.html">Quaternion</a>& q) { <a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>+=q.<a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>; <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>+=q.<a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>; <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>+=q.<a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>; <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>+=q.<a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00259"></a><span class="lineno"><a class="code" href="struct_quaternion.html#a654a30d1e5ea5ab36ea6eda8630afb0f"> 259</a></span>  <a class="code" href="struct_quaternion.html">Quaternion</a>& <a class="code" href="struct_quaternion.html#a654a30d1e5ea5ab36ea6eda8630afb0f">operator-=</a>(<span class="keyword">const</span> <a class="code" href="struct_quaternion.html">Quaternion</a>& q) { <a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>-=q.<a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>; <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>-=q.<a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>; <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>-=q.<a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>; <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>-=q.<a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00260"></a><span class="lineno"><a class="code" href="struct_quaternion.html#ade3779ff3f119b4929a6bfa4396573d9"> 260</a></span>  <a class="code" href="struct_quaternion.html">Quaternion</a>& <a class="code" href="struct_quaternion.html#ade3779ff3f119b4929a6bfa4396573d9">operator*=</a>(<span class="keywordtype">double</span> s) { <a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>*=s; <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>*=s; <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>*=s; <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>*=s; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00261"></a><span class="lineno"><a class="code" href="struct_quaternion.html#a7026988ae05a0849828ab6a125b461c7"> 261</a></span>  <a class="code" href="struct_quaternion.html">Quaternion</a>& <a class="code" href="struct_quaternion.html#a7026988ae05a0849828ab6a125b461c7">operator/=</a>(<span class="keywordtype">double</span> s) { <a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>/=s; <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>/=s; <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>/=s; <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>/=s; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> +<div class="line"><a name="l00262"></a><span class="lineno"> 262</span> </div> +<div class="line"><a name="l00263"></a><span class="lineno"><a class="code" href="struct_quaternion.html#a52453b85cbb187fc6dce092c41ad7da8"> 263</a></span>  <span class="keywordtype">double</span> <a class="code" href="struct_quaternion.html#a52453b85cbb187fc6dce092c41ad7da8">length</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> sqrt(<a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>*<a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a> + <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>*<a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a> + <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>*<a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a> + <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>*<a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>); }</div> +<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keywordtype">double</span> <a class="code" href="struct_quaternion.html#a6d0a4e28e1dafbbcccaec26d76f34240">Normalize</a>();</div> +<div class="line"><a name="l00265"></a><span class="lineno"> 265</span> </div> +<div class="line"><a name="l00266"></a><span class="lineno"><a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4"> 266</a></span>  <span class="keywordtype">double</span> <a class="code" href="struct_quaternion.html#a65c93d8db6c57203447bd0594b608512">x</a>, <a class="code" href="struct_quaternion.html#acfea23e3ba2b57356fe36b4d8f4c52f3">y</a>, <a class="code" href="struct_quaternion.html#a90bbdb05526bddfbc3247dcc9a5cace4">z</a>, <a class="code" href="struct_quaternion.html#aeded08fcb4e8d0866e612ed81cb44aa7">w</a>;</div> +<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> };</div> +<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> </div> +<div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> </div> +<div class="line"><a name="l00271"></a><span class="lineno"><a class="code" href="struct_plane.html"> 271</a></span> <span class="keyword">struct </span><a class="code" href="struct_plane.html">Plane</a></div> +<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> {</div> +<div class="line"><a name="l00273"></a><span class="lineno"><a class="code" href="struct_plane.html#a80c3588836f1c80d49d41fcee4418dae"> 273</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="struct_plane.html#a80c3588836f1c80d49d41fcee4418dae">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"Plane"</span>; }</div> +<div class="line"><a name="l00274"></a><span class="lineno"> 274</span> </div> +<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <a class="code" href="struct_plane.html#acac0d9c003e0ab10d07b146c3566a0c7">Plane</a>();</div> +<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <a class="code" href="struct_plane.html#acac0d9c003e0ab10d07b146c3566a0c7">Plane</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& p0, <span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& p1, <span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& p2);</div> +<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <a class="code" href="struct_plane.html#acac0d9c003e0ab10d07b146c3566a0c7">Plane</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& v0, <span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& v1, <span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& v2);</div> +<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> </div> +<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keywordtype">void</span> <a class="code" href="struct_plane.html#abeb77007b8e213e99cd882b4c261dbaf">Rotate</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& v0, <span class="keyword">const</span> <a class="code" href="struct_matrix.html">Matrix</a>& m);</div> +<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="keywordtype">void</span> <a class="code" href="struct_plane.html#a828846eec3cf928437813a352853c6cd">Translate</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& v0);</div> +<div class="line"><a name="l00281"></a><span class="lineno"> 281</span> </div> +<div class="line"><a name="l00282"></a><span class="lineno"><a class="code" href="struct_plane.html#a6ad7fdbb1461aa0527eb1f6745e10962"> 282</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_plane.html#a6ad7fdbb1461aa0527eb1f6745e10962">distance</a>;</div> +<div class="line"><a name="l00283"></a><span class="lineno"><a class="code" href="struct_plane.html#a4fca1d30bfad2542c8e38aa32ff13655"> 283</a></span>  <a class="code" href="struct_vec3.html">Vec3</a> <a class="code" href="struct_plane.html#a4fca1d30bfad2542c8e38aa32ff13655">normal</a>;</div> +<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> };</div> +<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> </div> +<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> </div> +<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="keywordtype">double</span> <a class="code" href="_geometry_8cpp.html#af507df72c2927886430fa6c25be87b82">DotProduct</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& a, <span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& b);</div> +<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="keywordtype">void</span> <a class="code" href="l3ds_8cpp.html#a3ac088301f55128c9217bb5a2c4dcc74">CrossProduct</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& a, <span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& b, <a class="code" href="struct_point.html">Point</a>& out);</div> +<div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="keywordtype">void</span> <a class="code" href="_geometry_8cpp.html#aca1d3b40ee7c81df67a92b3fd102148c">MConcat</a>(<span class="keywordtype">double</span> in1[3][3], <span class="keywordtype">double</span> in2[3][3], <span class="keywordtype">double</span> out[3][3]);</div> +<div class="line"><a name="l00291"></a><span class="lineno"> 291</span> </div> +<div class="line"><a name="l00292"></a><span class="lineno"> 292</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00293"></a><span class="lineno"> 293</span> </div> +<div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <span class="keywordtype">int</span> <a class="code" href="_geometry_8cpp.html#a37f9f7b1d82170ce5136881a54b7d7d6">lines_intersect</a>(</div> +<div class="line"><a name="l00295"></a><span class="lineno"> 295</span> <span class="comment">/* 1st line segment */</span> <span class="keywordtype">double</span> x1, <span class="keywordtype">double</span> y1, <span class="keywordtype">double</span> x2, <span class="keywordtype">double</span> y2,</div> +<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> <span class="comment">/* 2nd line segment */</span> <span class="keywordtype">double</span> x3, <span class="keywordtype">double</span> y3, <span class="keywordtype">double</span> x4, <span class="keywordtype">double</span> y4,</div> +<div class="line"><a name="l00297"></a><span class="lineno"> 297</span> <span class="comment">/* intersect point */</span> <span class="keywordtype">double</span>& x, <span class="keywordtype">double</span>& y);</div> +<div class="line"><a name="l00298"></a><span class="lineno"> 298</span> </div> +<div class="line"><a name="l00299"></a><span class="lineno"> 299</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> </div> +<div class="line"><a name="l00301"></a><span class="lineno"> 301</span> <span class="preprocessor">#endif Geometry_h</span></div> +<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> <span class="preprocessor"></span></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_d6625d0f3efd9eb70ff961583505095b.html">nGenEx</a></li><li class="navelem"><a class="el" href="_geometry_8h.html">Geometry.h</a></li> + <li class="footer">Generated on Tue Jun 5 2012 20:46:23 for Starshatter_Open by + <a href="http://www.doxygen.org/index.html"> + <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1 </li> + </ul> +</div> +</body> +</html> |