aboutsummaryrefslogtreecommitdiffstats
path: root/dev/MinGfx/docs/html/vector2_8h_source.html
blob: 06ea7e212738e10f1a25199a149f0dd4910bc0a1 (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
<!-- 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/vector2.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">vector2.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="vector2_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_VECTOR2_H_</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#define SRC_VECTOR2_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="point2_8h.html">point2.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="l00028"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html">   28</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> {</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a962433a7e3158cf6b224604a0463852f">   32</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector2.html#a962433a7e3158cf6b224604a0463852f">Vector2</a>();</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#acc16337b6b06ebea2fde4c4bd1be7abd">   36</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector2.html#acc16337b6b06ebea2fde4c4bd1be7abd">Vector2</a>(<span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector2.html#ae84b079eb21494bc7c9a93d32a63712a">x</a>, <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector2.html#ac427d5c06474777e851bed05ec5d134b">y</a>);</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    </div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a6e3d063a7080bfe199acc70cd5afded2">   39</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector2.html#a6e3d063a7080bfe199acc70cd5afded2">Vector2</a>(<span class="keywordtype">float</span> *v);</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    </div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a40f53939581f5d06a1b757b0398525f8">   42</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector2.html#a40f53939581f5d06a1b757b0398525f8">Vector2</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; v);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    </div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#ac49b009c4b6052ebe71d5cf4ce241b1f">   45</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classmingfx_1_1_vector2.html#ac49b009c4b6052ebe71d5cf4ce241b1f">~Vector2</a>();</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#ad7acc2cf4dcd2eca210899c846bb7dfe">   48</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_vector2.html#ad7acc2cf4dcd2eca210899c846bb7dfe">operator==</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; v) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a1cf3488f1f14a9bf7f6e1278c1c63cdb">   51</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_vector2.html#a1cf3488f1f14a9bf7f6e1278c1c63cdb">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; v) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    </div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a28c44a323e5bd1a251dee9e00e2e1769">   54</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; <a class="code" href="classmingfx_1_1_vector2.html#a28c44a323e5bd1a251dee9e00e2e1769">operator=</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; v);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    </div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#ae1fc0ce3ca1af3d0546af32742e13000">   57</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector2.html#ae1fc0ce3ca1af3d0546af32742e13000">operator[]</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> i) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a93acf7f4f150cfe53859e31d90eddd1e">   66</a></span>&#160;    <span class="keywordtype">float</span>&amp; <a class="code" href="classmingfx_1_1_vector2.html#a93acf7f4f150cfe53859e31d90eddd1e">operator[]</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> i);</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_vector2.html#ae84b079eb21494bc7c9a93d32a63712a">   70</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector2.html#ae84b079eb21494bc7c9a93d32a63712a">x</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> v[0]; }</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    </div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#ac427d5c06474777e851bed05ec5d134b">   74</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector2.html#ac427d5c06474777e851bed05ec5d134b">y</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> v[1]; }</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a267e6749091f23263d1620f801f0a831">   77</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector2.html#a267e6749091f23263d1620f801f0a831">w</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 0.0; }</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    </div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="comment">// --- Vector operations ---</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    </div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#ae2208539c6b29712c22f557dcfdd55d9">   83</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector2.html#ae2208539c6b29712c22f557dcfdd55d9">Dot</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; v) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    </div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a71b90903d00cdc318ea42f593db6dbb9">   86</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector2.html#a71b90903d00cdc318ea42f593db6dbb9">Length</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a632ddd5b06c48fa0f6f39550e91082c0">   89</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_vector2.html#a632ddd5b06c48fa0f6f39550e91082c0">Normalize</a>();</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    </div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a70f9f612a99017bf051e40ebd7fa7f83">   93</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> <a class="code" href="classmingfx_1_1_vector2.html#a70f9f612a99017bf051e40ebd7fa7f83">ToUnit</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    </div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a5813ffa3c185551eec1927e1daa4cb17">   98</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> <a class="code" href="classmingfx_1_1_vector2.html#a5813ffa3c185551eec1927e1daa4cb17">Lerp</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> &amp;b, <span class="keywordtype">float</span> alpha) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    </div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a80ef53519d50a6a6f158f66755c040d1">  101</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">float</span> * <a class="code" href="classmingfx_1_1_vector2.html#a80ef53519d50a6a6f158f66755c040d1">value_ptr</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    </div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a06d6c283aba957bddc2b9849698838b2">  106</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> <a class="code" href="classmingfx_1_1_vector2.html#a06d6c283aba957bddc2b9849698838b2">Normalize</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> &amp;v);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    </div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a9e81c518908ca06c98ba099b075fe1cd">  109</a></span>&#160;    <span class="keyword">static</span> <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_vector2.html#a9e81c518908ca06c98ba099b075fe1cd">Dot</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> &amp;v1, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> &amp;v2);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    </div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a7cb11f9fe8962ff9092fc1e5736faacf">  112</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; <a class="code" href="classmingfx_1_1_vector2.html#a7cb11f9fe8962ff9092fc1e5736faacf">Zero</a>();</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_vector2.html#a5b51e62f03e95d6be1262f037aecf0fd">  115</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; <a class="code" href="classmingfx_1_1_vector2.html#a5b51e62f03e95d6be1262f037aecf0fd">One</a>();</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#a8ef6e0525ec34aaee9cf35bab098ecdb">  118</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; <a class="code" href="classmingfx_1_1_vector2.html#a8ef6e0525ec34aaee9cf35bab098ecdb">UnitX</a>();</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#ab7b3ba42a5a63c512bd7b32fd4cc0db0">  121</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; <a class="code" href="classmingfx_1_1_vector2.html#ab7b3ba42a5a63c512bd7b32fd4cc0db0">UnitY</a>();</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    </div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classmingfx_1_1_vector2.html#ac332b5f01b3357b85e6d279fb059d561">  125</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> <a class="code" href="classmingfx_1_1_vector2.html#ac332b5f01b3357b85e6d279fb059d561">Lerp</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> &amp;a, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> &amp;b, <span class="keywordtype">float</span> alpha);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keywordtype">float</span> v[2];</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;};</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="comment">// ---------- Operator Overloads for Working with Vectors ----------</span></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160; </div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="comment">// --- Scalers ---</span></div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a79ffb6c38c6c0b68ce1fdb7ae76ea6bd">  138</a></span>&#160;<a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> <a class="code" href="namespacemingfx.html#a444ae88d836b913ac8307fbf4357f7ed">operator/</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; v, <span class="keyword">const</span> <span class="keywordtype">float</span> s);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160; </div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a8bc25e621d21323fdd96f2c4a4141432">  141</a></span>&#160;<a class="code" href="classmingfx_1_1_vector2.html">Vector2</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_vector2.html">Vector2</a>&amp; v);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a8358de6421374fb037e8c51e8f2d5878">  144</a></span>&#160;<a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> <a class="code" href="namespacemingfx.html#ae5708e414f585dde2a5418ddae259a57">operator*</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; v, <span class="keyword">const</span> <span class="keywordtype">float</span> s);</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a5daeaa383c40eed6f41b2c1b7930499f">  147</a></span>&#160;<a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> <a class="code" href="namespacemingfx.html#a2f5a225a54f07164d5172a3721a3aee6">operator-</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; v);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160; </div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="comment">// Note: no -(point) operator, that&#39;s an undefined operation</span></div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160; </div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="comment">// --- Point and Vector Arithmetic ---</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160; </div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="namespacemingfx.html#ac71c01d7c300671cb343a24b68a875bf">  155</a></span>&#160;<a class="code" href="classmingfx_1_1_point2.html">Point2</a> <a class="code" href="namespacemingfx.html#a3c3b45ed6edf3fe76f98a7fd165dca03">operator+</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; v, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>&amp; p);</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="namespacemingfx.html#ab2083f9992ba509a275db11522f16a2e">  158</a></span>&#160;<a class="code" href="classmingfx_1_1_point2.html">Point2</a> <a class="code" href="namespacemingfx.html#a3c3b45ed6edf3fe76f98a7fd165dca03">operator+</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>&amp; p, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; v);</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="namespacemingfx.html#acdffada748181cc17ec93784f858ff9f">  161</a></span>&#160;<a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> <a class="code" href="namespacemingfx.html#a3c3b45ed6edf3fe76f98a7fd165dca03">operator+</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; v1, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; v2);</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160; </div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="comment">// Note: no (point + point) operator, that&#39;s an undefined operation</span></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="namespacemingfx.html#ae81fac825c0f6eca59cc1a1cc06d63f2">  166</a></span>&#160;<a class="code" href="classmingfx_1_1_point2.html">Point2</a> <a class="code" href="namespacemingfx.html#a2f5a225a54f07164d5172a3721a3aee6">operator-</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>&amp; p, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; v);</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160; </div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a128585c0b87e03beda4a660d4e58789b">  169</a></span>&#160;<a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> <a class="code" href="namespacemingfx.html#a2f5a225a54f07164d5172a3721a3aee6">operator-</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; v1, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a>&amp; v2);</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="namespacemingfx.html#ad370bce0bb5b88beb974aad1d44890e8">  172</a></span>&#160;<a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> <a class="code" href="namespacemingfx.html#a2f5a225a54f07164d5172a3721a3aee6">operator-</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>&amp; p1, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point2.html">Point2</a>&amp; p2);</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="comment">// Note: no (vector - point) operator, that&#39;s an undefined operation</span></div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160; </div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="comment">// --- Stream operators ---</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160; </div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="comment">// Vector2</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="namespacemingfx.html#acbe43aa24ecedf663c65becf2be282c7">  180</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_vector2.html">Vector2</a> &amp;v);</div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="namespacemingfx.html#ab3f12496d7a5028b71882373d6fa7203">  181</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_vector2.html">Vector2</a> &amp;v);</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160; </div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    </div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;} <span class="comment">// end namespace</span></div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160; </div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassmingfx_1_1_point2_html"><div class="ttname"><a href="classmingfx_1_1_point2.html">mingfx::Point2</a></div><div class="ttdoc">A 2D Point with floating point coordinates, used for storing 2D texture coordinates,...</div><div class="ttdef"><b>Definition:</b> <a href="point2_8h_source.html#l00028">point2.h:28</a></div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html"><div class="ttname"><a href="classmingfx_1_1_vector2.html">mingfx::Vector2</a></div><div class="ttdoc">A 2D Vector with floating point coordinates, used for storing 2D translations, mouse movements,...</div><div class="ttdef"><b>Definition:</b> <a href="vector2_8h_source.html#l00028">vector2.h:28</a></div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html_a06d6c283aba957bddc2b9849698838b2"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a06d6c283aba957bddc2b9849698838b2">mingfx::Vector2::Normalize</a></div><div class="ttdeci">static Vector2 Normalize(const Vector2 &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_vector2_html_a1cf3488f1f14a9bf7f6e1278c1c63cdb"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a1cf3488f1f14a9bf7f6e1278c1c63cdb">mingfx::Vector2::operator!=</a></div><div class="ttdeci">bool operator!=(const Vector2 &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_vector2_html_a267e6749091f23263d1620f801f0a831"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a267e6749091f23263d1620f801f0a831">mingfx::Vector2::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="vector2_8h_source.html#l00077">vector2.h:77</a></div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html_a28c44a323e5bd1a251dee9e00e2e1769"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a28c44a323e5bd1a251dee9e00e2e1769">mingfx::Vector2::operator=</a></div><div class="ttdeci">Vector2 &amp; operator=(const Vector2 &amp;v)</div><div class="ttdoc">Vector assignment operator.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html_a40f53939581f5d06a1b757b0398525f8"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a40f53939581f5d06a1b757b0398525f8">mingfx::Vector2::Vector2</a></div><div class="ttdeci">Vector2(const Vector2 &amp;v)</div><div class="ttdoc">Copy constructor for vector.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html_a5813ffa3c185551eec1927e1daa4cb17"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a5813ffa3c185551eec1927e1daa4cb17">mingfx::Vector2::Lerp</a></div><div class="ttdeci">Vector2 Lerp(const Vector2 &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_vector2_html_a5b51e62f03e95d6be1262f037aecf0fd"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a5b51e62f03e95d6be1262f037aecf0fd">mingfx::Vector2::One</a></div><div class="ttdeci">static const Vector2 &amp; One()</div><div class="ttdoc">(1,1) - a shortcut for a special vector that is frequently needed</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html_a632ddd5b06c48fa0f6f39550e91082c0"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a632ddd5b06c48fa0f6f39550e91082c0">mingfx::Vector2::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_vector2_html_a6e3d063a7080bfe199acc70cd5afded2"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a6e3d063a7080bfe199acc70cd5afded2">mingfx::Vector2::Vector2</a></div><div class="ttdeci">Vector2(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_vector2_html_a70f9f612a99017bf051e40ebd7fa7f83"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a70f9f612a99017bf051e40ebd7fa7f83">mingfx::Vector2::ToUnit</a></div><div class="ttdeci">Vector2 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_vector2_html_a71b90903d00cdc318ea42f593db6dbb9"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a71b90903d00cdc318ea42f593db6dbb9">mingfx::Vector2::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_vector2_html_a7cb11f9fe8962ff9092fc1e5736faacf"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a7cb11f9fe8962ff9092fc1e5736faacf">mingfx::Vector2::Zero</a></div><div class="ttdeci">static const Vector2 &amp; Zero()</div><div class="ttdoc">(0,0) - a shortcut for a special vector that is frequently needed</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html_a80ef53519d50a6a6f158f66755c040d1"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a80ef53519d50a6a6f158f66755c040d1">mingfx::Vector2::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_vector2_html_a8ef6e0525ec34aaee9cf35bab098ecdb"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a8ef6e0525ec34aaee9cf35bab098ecdb">mingfx::Vector2::UnitX</a></div><div class="ttdeci">static const Vector2 &amp; UnitX()</div><div class="ttdoc">(1,0) - a shortcut for a special vector that is frequently needed</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html_a93acf7f4f150cfe53859e31d90eddd1e"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a93acf7f4f150cfe53859e31d90eddd1e">mingfx::Vector2::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_vector2_html_a962433a7e3158cf6b224604a0463852f"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a962433a7e3158cf6b224604a0463852f">mingfx::Vector2::Vector2</a></div><div class="ttdeci">Vector2()</div><div class="ttdoc">Default constructor to create zero vector.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html_a9e81c518908ca06c98ba099b075fe1cd"><div class="ttname"><a href="classmingfx_1_1_vector2.html#a9e81c518908ca06c98ba099b075fe1cd">mingfx::Vector2::Dot</a></div><div class="ttdeci">static float Dot(const Vector2 &amp;v1, const Vector2 &amp;v2)</div><div class="ttdoc">Returns v1 dot v2.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html_ab7b3ba42a5a63c512bd7b32fd4cc0db0"><div class="ttname"><a href="classmingfx_1_1_vector2.html#ab7b3ba42a5a63c512bd7b32fd4cc0db0">mingfx::Vector2::UnitY</a></div><div class="ttdeci">static const Vector2 &amp; UnitY()</div><div class="ttdoc">(0,1) - a shortcut for a special vector that is frequently needed</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html_ac332b5f01b3357b85e6d279fb059d561"><div class="ttname"><a href="classmingfx_1_1_vector2.html#ac332b5f01b3357b85e6d279fb059d561">mingfx::Vector2::Lerp</a></div><div class="ttdeci">static Vector2 Lerp(const Vector2 &amp;a, const Vector2 &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_vector2_html_ac427d5c06474777e851bed05ec5d134b"><div class="ttname"><a href="classmingfx_1_1_vector2.html#ac427d5c06474777e851bed05ec5d134b">mingfx::Vector2::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="vector2_8h_source.html#l00074">vector2.h:74</a></div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html_ac49b009c4b6052ebe71d5cf4ce241b1f"><div class="ttname"><a href="classmingfx_1_1_vector2.html#ac49b009c4b6052ebe71d5cf4ce241b1f">mingfx::Vector2::~Vector2</a></div><div class="ttdeci">virtual ~Vector2()</div><div class="ttdoc">Vector destructor.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html_acc16337b6b06ebea2fde4c4bd1be7abd"><div class="ttname"><a href="classmingfx_1_1_vector2.html#acc16337b6b06ebea2fde4c4bd1be7abd">mingfx::Vector2::Vector2</a></div><div class="ttdeci">Vector2(float x, float y)</div><div class="ttdoc">Constructs a vector (x,y,0), where the 0 comes from the use of homogeneous coordinates in computer gr...</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html_ad7acc2cf4dcd2eca210899c846bb7dfe"><div class="ttname"><a href="classmingfx_1_1_vector2.html#ad7acc2cf4dcd2eca210899c846bb7dfe">mingfx::Vector2::operator==</a></div><div class="ttdeci">bool operator==(const Vector2 &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_vector2_html_ae1fc0ce3ca1af3d0546af32742e13000"><div class="ttname"><a href="classmingfx_1_1_vector2.html#ae1fc0ce3ca1af3d0546af32742e13000">mingfx::Vector2::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_vector2_html_ae2208539c6b29712c22f557dcfdd55d9"><div class="ttname"><a href="classmingfx_1_1_vector2.html#ae2208539c6b29712c22f557dcfdd55d9">mingfx::Vector2::Dot</a></div><div class="ttdeci">float Dot(const Vector2 &amp;v) const</div><div class="ttdoc">Returns &quot;this dot v&quot;.</div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html_ae84b079eb21494bc7c9a93d32a63712a"><div class="ttname"><a href="classmingfx_1_1_vector2.html#ae84b079eb21494bc7c9a93d32a63712a">mingfx::Vector2::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="vector2_8h_source.html#l00070">vector2.h:70</a></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="apoint2_8h_html"><div class="ttname"><a href="point2_8h.html">point2.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>