summaryrefslogtreecommitdiffstats
path: root/dev/MinGfx/docs/html/vector3_8h_source.html
blob: a64d797afed159a98855c1a47110b442b87d3223 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<!-- HTML header for doxygen 1.8.9.1-->
<!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"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<title>MinGfx Toolkit: src/vector3.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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.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">MinGfx Toolkit
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A minimal library for writing cross-platform (Windows, OSX, linux) graphics programs.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">vector3.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="vector3_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>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> This file is part of the MinGfx Project.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> </span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> Copyright (c) 2017,2018 Regents of the University of Minnesota.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> All Rights Reserved.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> </span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> Original Author(s) of this File:</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">    Dan Keefe, 2018, University of Minnesota</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">    </span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> Author(s) of Significant Updates/Modifications to the File:</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">    ...</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#ifndef SRC_VECTOR3_H_</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#define SRC_VECTOR3_H_</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="point3_8h.html">point3.h</a>&quot;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacemingfx.html">mingfx</a> {</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    </div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html">   62</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> {</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">   66</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">Vector3</a>();</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a256018f34e230d542027d07d14fd6e65">   70</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector3.html#a256018f34e230d542027d07d14fd6e65">Vector3</a>(<span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">x</a>, <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">y</a>, <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector3.html#a78d1dba881575517f0427d55cc418df6">z</a>);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a95b274c7a5ff118af20bc71682c6b1f1">   73</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector3.html#a95b274c7a5ff118af20bc71682c6b1f1">Vector3</a>(<span class="keywordtype">float</span> *v);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#af6100965af7770f833dbf0c9f30f4fdd">   76</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector3.html#af6100965af7770f833dbf0c9f30f4fdd">Vector3</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a6e0d09d774615bcfde5645c22a645969">   79</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classmingfx_1_1_vector3.html#a6e0d09d774615bcfde5645c22a645969">~Vector3</a>();</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a85486d0a355417fe4b41fa64146c9e98">   82</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_vector3.html#a85486d0a355417fe4b41fa64146c9e98">operator==</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#ab93acb916c310920b9c011159eaaa016">   85</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_vector3.html#ab93acb916c310920b9c011159eaaa016">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#aa5b1c05c285fad7f2709f6f351a63608">   88</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; <a class="code" href="classmingfx_1_1_vector3.html#aa5b1c05c285fad7f2709f6f351a63608">operator=</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#aa37b1fc4b1df9f72726d981c08cd0d1b">   91</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector3.html#aa37b1fc4b1df9f72726d981c08cd0d1b">operator[]</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> i) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#abcdda4627b24af879aba38d4fc0e6f71">  100</a></span>&#160;    <span class="keywordtype">float</span>&amp; <a class="code" href="classmingfx_1_1_vector3.html#abcdda4627b24af879aba38d4fc0e6f71">operator[]</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> i);  </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">  104</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">x</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> v[0]; }</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    </div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">  108</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">y</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> v[1]; }</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a78d1dba881575517f0427d55cc418df6">  112</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector3.html#a78d1dba881575517f0427d55cc418df6">z</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> v[2]; }</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">  115</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">w</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 0.0; }</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="comment">// --- Vector operations ---</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a31692a459a8056fe220d115eb5addc88">  127</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector3.html#a31692a459a8056fe220d115eb5addc88">Dot</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a38cd4deed7d342464619b34b0ef95bec">  136</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> <a class="code" href="classmingfx_1_1_vector3.html#a38cd4deed7d342464619b34b0ef95bec">Cross</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160; </div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a7633dc1625b1f2e6b381438e896b45a3">  139</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector3.html#a7633dc1625b1f2e6b381438e896b45a3">Length</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a9b8e9ecbe10477adec527842f62d0dca">  142</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_vector3.html#a9b8e9ecbe10477adec527842f62d0dca">Normalize</a>();</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a3caef3c6f24b90730ef70c84ce0e0d71">  146</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> <a class="code" href="classmingfx_1_1_vector3.html#a3caef3c6f24b90730ef70c84ce0e0d71">ToUnit</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160; </div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#aa7ddfd662e866c019a772ba66eae7331">  149</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">float</span> * <a class="code" href="classmingfx_1_1_vector3.html#aa7ddfd662e866c019a772ba66eae7331">value_ptr</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160; </div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a8dafc21c64a4964bac27519972d909b6">  154</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> <a class="code" href="classmingfx_1_1_vector3.html#a8dafc21c64a4964bac27519972d909b6">Lerp</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &amp;b, <span class="keywordtype">float</span> alpha) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    </div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    </div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a52bf8582baa71e7d6f80c412687d9714">  158</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; <a class="code" href="classmingfx_1_1_vector3.html#a52bf8582baa71e7d6f80c412687d9714">Zero</a>();</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160; </div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#af71b12760516a9cc4837ba9e1dee28db">  161</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; <a class="code" href="classmingfx_1_1_vector3.html#af71b12760516a9cc4837ba9e1dee28db">One</a>();</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160; </div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#ae8d822fdea67f63580b4e1f78f5b8922">  164</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; <a class="code" href="classmingfx_1_1_vector3.html#ae8d822fdea67f63580b4e1f78f5b8922">UnitX</a>();</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160; </div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a8d31e433d1ac04aaceea1b1dcd1643df">  167</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; <a class="code" href="classmingfx_1_1_vector3.html#a8d31e433d1ac04aaceea1b1dcd1643df">UnitY</a>();</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160; </div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a4b696b0d1143d6e30a34a2f889d2ca61">  170</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; <a class="code" href="classmingfx_1_1_vector3.html#a4b696b0d1143d6e30a34a2f889d2ca61">UnitZ</a>();</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    </div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160; </div>
<div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#aeff0177e2111139469b60733248fad8d">  182</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> <a class="code" href="classmingfx_1_1_vector3.html#aeff0177e2111139469b60733248fad8d">Normalize</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &amp;v);</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    </div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a45d7d211135edd97ca21b047439db485">  194</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> <a class="code" href="classmingfx_1_1_vector3.html#a45d7d211135edd97ca21b047439db485">Cross</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &amp;v1, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &amp;v2);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    </div>
<div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a235fb20d4075960d2ce6198dc95ac507">  206</a></span>&#160;    <span class="keyword">static</span> <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector3.html#a235fb20d4075960d2ce6198dc95ac507">Dot</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &amp;v1, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &amp;v2);</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    </div>
<div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector3.html#a489b042bedf8fa329ac05fe905ca1c6f">  210</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> <a class="code" href="classmingfx_1_1_vector3.html#a489b042bedf8fa329ac05fe905ca1c6f">Lerp</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &amp;a, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &amp;b, <span class="keywordtype">float</span> alpha);</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    </div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    <span class="keywordtype">float</span> v[3];</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;};</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160; </div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160; </div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;<span class="comment">// ---------- Operator Overloads for Working with Vectors ----------</span></div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160; </div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160; </div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="comment">// --- Scalers ---</span></div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160; </div>
<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="namespacemingfx.html#aa19b1dea0b7aa468950e56044fda328a">  223</a></span>&#160;<a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> <a class="code" href="namespacemingfx.html#a444ae88d836b913ac8307fbf4357f7ed">operator/</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v, <span class="keyword">const</span> <span class="keywordtype">float</span> s);</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160; </div>
<div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a7e3941689c65388690916d00e0d423d4">  226</a></span>&#160;<a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> <a class="code" href="namespacemingfx.html#ae5708e414f585dde2a5418ddae259a57">operator*</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> s, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v);</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160; </div>
<div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="namespacemingfx.html#aa8a18cb8506dee589eaf6883a32e6fb5">  229</a></span>&#160;<a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> <a class="code" href="namespacemingfx.html#ae5708e414f585dde2a5418ddae259a57">operator*</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v, <span class="keyword">const</span> <span class="keywordtype">float</span> s);</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160; </div>
<div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="namespacemingfx.html#afd07add6169773bae12d40201f8af7db">  232</a></span>&#160;<a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> <a class="code" href="namespacemingfx.html#a2f5a225a54f07164d5172a3721a3aee6">operator-</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v);</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160; </div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;<span class="comment">// Note: no -(point) operator, that&#39;s an undefined operation</span></div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160; </div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160; </div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;<span class="comment">// --- Point and Vector Arithmetic ---</span></div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160; </div>
<div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a4b4428d2cf65ba5226ef4036352d311e">  240</a></span>&#160;<a class="code" href="classmingfx_1_1_point3.html">Point3</a> <a class="code" href="namespacemingfx.html#a3c3b45ed6edf3fe76f98a7fd165dca03">operator+</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point3.html">Point3</a>&amp; p);</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160; </div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="namespacemingfx.html#aadea317107a50ec6847ce01927b61c82">  243</a></span>&#160;<a class="code" href="classmingfx_1_1_point3.html">Point3</a> <a class="code" href="namespacemingfx.html#a3c3b45ed6edf3fe76f98a7fd165dca03">operator+</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point3.html">Point3</a>&amp; p, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v);</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160; </div>
<div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="namespacemingfx.html#aeeeb04b70f8e8becbcda7a3dc7024c1b">  246</a></span>&#160;<a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> <a class="code" href="namespacemingfx.html#a3c3b45ed6edf3fe76f98a7fd165dca03">operator+</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v1, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v2);</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160; </div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;<span class="comment">// Note: no (point + point) operator, that&#39;s an undefined operation</span></div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160; </div>
<div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a579b90d99a1d6f794ca44017ded3a8db">  251</a></span>&#160;<a class="code" href="classmingfx_1_1_point3.html">Point3</a> <a class="code" href="namespacemingfx.html#a2f5a225a54f07164d5172a3721a3aee6">operator-</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point3.html">Point3</a>&amp; p, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v);</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; </div>
<div class="line"><a name="l00254"></a><span class="lineno"><a class="line" href="namespacemingfx.html#aecdf7f36c4feb04034f1d07c49d5c0e3">  254</a></span>&#160;<a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> <a class="code" href="namespacemingfx.html#a2f5a225a54f07164d5172a3721a3aee6">operator-</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v1, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v2);</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160; </div>
<div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a77d92da8f1a866306518422cd9d2f0af">  257</a></span>&#160;<a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> <a class="code" href="namespacemingfx.html#a2f5a225a54f07164d5172a3721a3aee6">operator-</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point3.html">Point3</a>&amp; p1, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point3.html">Point3</a>&amp; p2);</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160; </div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;<span class="comment">// Note: no (vector - point) operator, that&#39;s an undefined operation</span></div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160; </div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    </div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    </div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    </div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;<span class="comment">// --- Stream operators ---</span></div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160; </div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;<span class="comment">// Vector3</span></div>
<div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a3425c24faf923364cd3a764d50601c52">  267</a></span>&#160;std::ostream &amp; <a class="code" href="namespacemingfx.html#a6bc967741341f4f318a505d884192906">operator&lt;&lt; </a>( std::ostream &amp;os, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &amp;v);</div>
<div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a8cc2f52569661416cb2ca67c516b7c93">  268</a></span>&#160;std::istream &amp; <a class="code" href="namespacemingfx.html#a6eb31e6e81c6e29144799be4c9db404d">operator&gt;&gt; </a>( std::istream &amp;is, <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &amp;v);</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160; </div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    </div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;} <span class="comment">// end namespace</span></div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160; </div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassmingfx_1_1_point3_html"><div class="ttname"><a href="classmingfx_1_1_point3.html">mingfx::Point3</a></div><div class="ttdoc">A 3D Point with floating point coordinates, used for storing vertices and all sorts of other 3D graph...</div><div class="ttdef"><b>Definition:</b> <a href="point3_8h_source.html#l00052">point3.h:52</a></div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html"><div class="ttname"><a href="classmingfx_1_1_vector3.html">mingfx::Vector3</a></div><div class="ttdoc">A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00062">vector3.h:62</a></div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a235fb20d4075960d2ce6198dc95ac507"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a235fb20d4075960d2ce6198dc95ac507">mingfx::Vector3::Dot</a></div><div class="ttdeci">static float Dot(const Vector3 &amp;v1, const Vector3 &amp;v2)</div><div class="ttdoc">Returns v1 dot v2.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a2556298f536ba115019982222ce6e0c5"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a2556298f536ba115019982222ce6e0c5">mingfx::Vector3::w</a></div><div class="ttdeci">float w() const</div><div class="ttdoc">In homogeneous coordinates, the w coordinate for all vectors is 0.0.</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00115">vector3.h:115</a></div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a256018f34e230d542027d07d14fd6e65"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a256018f34e230d542027d07d14fd6e65">mingfx::Vector3::Vector3</a></div><div class="ttdeci">Vector3(float x, float y, float z)</div><div class="ttdoc">Constructs a vector (x,y,z,0), where the 0 comes from the use of homogeneous coordinates in computer ...</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a31692a459a8056fe220d115eb5addc88"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a31692a459a8056fe220d115eb5addc88">mingfx::Vector3::Dot</a></div><div class="ttdeci">float Dot(const Vector3 &amp;v) const</div><div class="ttdoc">Returns &quot;this dot v&quot;, for example:</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a38cd4deed7d342464619b34b0ef95bec"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a38cd4deed7d342464619b34b0ef95bec">mingfx::Vector3::Cross</a></div><div class="ttdeci">Vector3 Cross(const Vector3 &amp;v) const</div><div class="ttdoc">Returns &quot;this cross v&quot;, for example:</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a3caef3c6f24b90730ef70c84ce0e0d71"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a3caef3c6f24b90730ef70c84ce0e0d71">mingfx::Vector3::ToUnit</a></div><div class="ttdeci">Vector3 ToUnit() const</div><div class="ttdoc">Returns a normalized (i.e., unit length) version of the vector without modifying the original 'this' ...</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a45d7d211135edd97ca21b047439db485"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a45d7d211135edd97ca21b047439db485">mingfx::Vector3::Cross</a></div><div class="ttdeci">static Vector3 Cross(const Vector3 &amp;v1, const Vector3 &amp;v2)</div><div class="ttdoc">Returns v1 cross v2.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a489b042bedf8fa329ac05fe905ca1c6f"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a489b042bedf8fa329ac05fe905ca1c6f">mingfx::Vector3::Lerp</a></div><div class="ttdeci">static Vector3 Lerp(const Vector3 &amp;a, const Vector3 &amp;b, float alpha)</div><div class="ttdoc">Linear interpolation between two vectors. Alpha=0.0 returns 'a' and alpha=1.0 returns 'b',...</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a4b696b0d1143d6e30a34a2f889d2ca61"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a4b696b0d1143d6e30a34a2f889d2ca61">mingfx::Vector3::UnitZ</a></div><div class="ttdeci">static const Vector3 &amp; UnitZ()</div><div class="ttdoc">(0,0,1) - a shortcut for a special vector that is frequently needed</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a52bf8582baa71e7d6f80c412687d9714"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a52bf8582baa71e7d6f80c412687d9714">mingfx::Vector3::Zero</a></div><div class="ttdeci">static const Vector3 &amp; Zero()</div><div class="ttdoc">(0,0,0) - a shortcut for a special vector that is frequently needed</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a6e0d09d774615bcfde5645c22a645969"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a6e0d09d774615bcfde5645c22a645969">mingfx::Vector3::~Vector3</a></div><div class="ttdeci">virtual ~Vector3()</div><div class="ttdoc">Vector destructor.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a7633dc1625b1f2e6b381438e896b45a3"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a7633dc1625b1f2e6b381438e896b45a3">mingfx::Vector3::Length</a></div><div class="ttdeci">float Length() const</div><div class="ttdoc">Returns the length of the vector.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a78d1dba881575517f0427d55cc418df6"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a78d1dba881575517f0427d55cc418df6">mingfx::Vector3::z</a></div><div class="ttdeci">float z() const</div><div class="ttdoc">Read only access to the z coordinate. Can also use my_vector[2]. Use the my_vector[2] = 1....</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00112">vector3.h:112</a></div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a7f57af8bbecbc793fa17def4521de4dd"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a7f57af8bbecbc793fa17def4521de4dd">mingfx::Vector3::Vector3</a></div><div class="ttdeci">Vector3()</div><div class="ttdoc">Default constructor to create zero vector.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a85486d0a355417fe4b41fa64146c9e98"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a85486d0a355417fe4b41fa64146c9e98">mingfx::Vector3::operator==</a></div><div class="ttdeci">bool operator==(const Vector3 &amp;v) const</div><div class="ttdoc">Check for &quot;equality&quot;, taking floating point imprecision into account.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a8d31e433d1ac04aaceea1b1dcd1643df"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a8d31e433d1ac04aaceea1b1dcd1643df">mingfx::Vector3::UnitY</a></div><div class="ttdeci">static const Vector3 &amp; UnitY()</div><div class="ttdoc">(0,1,0) - a shortcut for a special vector that is frequently needed</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a8dafc21c64a4964bac27519972d909b6"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a8dafc21c64a4964bac27519972d909b6">mingfx::Vector3::Lerp</a></div><div class="ttdeci">Vector3 Lerp(const Vector3 &amp;b, float alpha) const</div><div class="ttdoc">Linear interpolation between this vector and another. Alpha=0.0 returns this vector,...</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a95b274c7a5ff118af20bc71682c6b1f1"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a95b274c7a5ff118af20bc71682c6b1f1">mingfx::Vector3::Vector3</a></div><div class="ttdeci">Vector3(float *v)</div><div class="ttdoc">Constructs a vector given a pointer to x,y,z data.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_a9b8e9ecbe10477adec527842f62d0dca"><div class="ttname"><a href="classmingfx_1_1_vector3.html#a9b8e9ecbe10477adec527842f62d0dca">mingfx::Vector3::Normalize</a></div><div class="ttdeci">void Normalize()</div><div class="ttdoc">Normalizes the vector by making it unit length.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_aa37b1fc4b1df9f72726d981c08cd0d1b"><div class="ttname"><a href="classmingfx_1_1_vector3.html#aa37b1fc4b1df9f72726d981c08cd0d1b">mingfx::Vector3::operator[]</a></div><div class="ttdeci">float operator[](const int i) const</div><div class="ttdoc">Read only access to the ith coordinate of the vector.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_aa5b1c05c285fad7f2709f6f351a63608"><div class="ttname"><a href="classmingfx_1_1_vector3.html#aa5b1c05c285fad7f2709f6f351a63608">mingfx::Vector3::operator=</a></div><div class="ttdeci">Vector3 &amp; operator=(const Vector3 &amp;v)</div><div class="ttdoc">Vector assignment operator.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_aa7ddfd662e866c019a772ba66eae7331"><div class="ttname"><a href="classmingfx_1_1_vector3.html#aa7ddfd662e866c019a772ba66eae7331">mingfx::Vector3::value_ptr</a></div><div class="ttdeci">const float * value_ptr() const</div><div class="ttdoc">Returns a const pointer to the raw data array.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_ab93acb916c310920b9c011159eaaa016"><div class="ttname"><a href="classmingfx_1_1_vector3.html#ab93acb916c310920b9c011159eaaa016">mingfx::Vector3::operator!=</a></div><div class="ttdeci">bool operator!=(const Vector3 &amp;v) const</div><div class="ttdoc">Check for &quot;inequality&quot;, taking floating point imprecision into account.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_abcdda4627b24af879aba38d4fc0e6f71"><div class="ttname"><a href="classmingfx_1_1_vector3.html#abcdda4627b24af879aba38d4fc0e6f71">mingfx::Vector3::operator[]</a></div><div class="ttdeci">float &amp; operator[](const int i)</div><div class="ttdoc">Returns a reference to the ith coordinate of the vector. Use this accessor if you wish to set the coo...</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_ac380342bfa614c9a3babe1efd14d2cf4"><div class="ttname"><a href="classmingfx_1_1_vector3.html#ac380342bfa614c9a3babe1efd14d2cf4">mingfx::Vector3::x</a></div><div class="ttdeci">float x() const</div><div class="ttdoc">Read only access to the x coordinate. Can also use my_vector[0]. Use the my_vector[0] = 1....</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00104">vector3.h:104</a></div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_ae8d822fdea67f63580b4e1f78f5b8922"><div class="ttname"><a href="classmingfx_1_1_vector3.html#ae8d822fdea67f63580b4e1f78f5b8922">mingfx::Vector3::UnitX</a></div><div class="ttdeci">static const Vector3 &amp; UnitX()</div><div class="ttdoc">(1,0,0) - a shortcut for a special vector that is frequently needed</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_aeb74fbc0a970b40abb0db8f8e490ee17"><div class="ttname"><a href="classmingfx_1_1_vector3.html#aeb74fbc0a970b40abb0db8f8e490ee17">mingfx::Vector3::y</a></div><div class="ttdeci">float y() const</div><div class="ttdoc">Read only access to the y coordinate. Can also use my_vector[1]. Use the my_vector[1] = 1....</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00108">vector3.h:108</a></div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_aeff0177e2111139469b60733248fad8d"><div class="ttname"><a href="classmingfx_1_1_vector3.html#aeff0177e2111139469b60733248fad8d">mingfx::Vector3::Normalize</a></div><div class="ttdeci">static Vector3 Normalize(const Vector3 &amp;v)</div><div class="ttdoc">Returns a new vector that is the unit version of v.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_af6100965af7770f833dbf0c9f30f4fdd"><div class="ttname"><a href="classmingfx_1_1_vector3.html#af6100965af7770f833dbf0c9f30f4fdd">mingfx::Vector3::Vector3</a></div><div class="ttdeci">Vector3(const Vector3 &amp;v)</div><div class="ttdoc">Copy constructor for vector.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html_af71b12760516a9cc4837ba9e1dee28db"><div class="ttname"><a href="classmingfx_1_1_vector3.html#af71b12760516a9cc4837ba9e1dee28db">mingfx::Vector3::One</a></div><div class="ttdeci">static const Vector3 &amp; One()</div><div class="ttdoc">(1,1,1) - a shortcut for a special vector that is frequently needed</div></div>
<div class="ttc" id="anamespacemingfx_html"><div class="ttname"><a href="namespacemingfx.html">mingfx</a></div><div class="ttdoc">Namespace for the MinGfx Toolkit.</div><div class="ttdef"><b>Definition:</b> <a href="aabb_8h_source.html#l00021">aabb.h:21</a></div></div>
<div class="ttc" id="anamespacemingfx_html_a2f5a225a54f07164d5172a3721a3aee6"><div class="ttname"><a href="namespacemingfx.html#a2f5a225a54f07164d5172a3721a3aee6">mingfx::operator-</a></div><div class="ttdeci">Quaternion operator-(const Quaternion &amp;q)</div></div>
<div class="ttc" id="anamespacemingfx_html_a3c3b45ed6edf3fe76f98a7fd165dca03"><div class="ttname"><a href="namespacemingfx.html#a3c3b45ed6edf3fe76f98a7fd165dca03">mingfx::operator+</a></div><div class="ttdeci">AABB operator+(const AABB &amp;A, const AABB &amp;B)</div></div>
<div class="ttc" id="anamespacemingfx_html_a444ae88d836b913ac8307fbf4357f7ed"><div class="ttname"><a href="namespacemingfx.html#a444ae88d836b913ac8307fbf4357f7ed">mingfx::operator/</a></div><div class="ttdeci">Quaternion operator/(const Quaternion &amp;q, const float s)</div></div>
<div class="ttc" id="anamespacemingfx_html_a6bc967741341f4f318a505d884192906"><div class="ttname"><a href="namespacemingfx.html#a6bc967741341f4f318a505d884192906">mingfx::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;os, const Color &amp;c)</div></div>
<div class="ttc" id="anamespacemingfx_html_a6eb31e6e81c6e29144799be4c9db404d"><div class="ttname"><a href="namespacemingfx.html#a6eb31e6e81c6e29144799be4c9db404d">mingfx::operator&gt;&gt;</a></div><div class="ttdeci">std::istream &amp; operator&gt;&gt;(std::istream &amp;is, Color &amp;c)</div></div>
<div class="ttc" id="anamespacemingfx_html_ae5708e414f585dde2a5418ddae259a57"><div class="ttname"><a href="namespacemingfx.html#ae5708e414f585dde2a5418ddae259a57">mingfx::operator*</a></div><div class="ttdeci">Matrix4 operator*(const Matrix4 &amp;m, const float &amp;s)</div><div class="ttdoc">Multiply matrix and scalar, returns the new matrix.</div></div>
<div class="ttc" id="apoint3_8h_html"><div class="ttname"><a href="point3_8h.html">point3.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- HTML footer for doxygen 1.8.9.1-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.9.1
</small></address>
</body>
</html>