summaryrefslogtreecommitdiffstats
path: root/dev/MinGfx/docs/html/matrix4_8h_source.html
blob: 2976e513b17e0fd971e8fc983bed034c0b4d75ed (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
276
277
278
279
280
281
282
283
284
285
286
<!-- 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/matrix4.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">matrix4.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="matrix4_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, 2017, 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_MATRIX4_H_</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#define SRC_MATRIX4_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;<span class="preprocessor">#include &quot;<a class="code" href="vector3_8h.html">vector3.h</a>&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ray_8h.html">ray.h</a>&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </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;<span class="keyword">namespace </span><a class="code" href="namespacemingfx.html">mingfx</a> {</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html">   50</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> {</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="keyword">public</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_matrix4.html#a50990f00b756d640670a0b02129afd22">   54</a></span>&#160;    <a class="code" href="classmingfx_1_1_matrix4.html#a50990f00b756d640670a0b02129afd22">Matrix4</a>();</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a09a366a3ef940ff355f8d5c521baa57d">   58</a></span>&#160;    <a class="code" href="classmingfx_1_1_matrix4.html#a09a366a3ef940ff355f8d5c521baa57d">Matrix4</a>(<span class="keyword">const</span> <span class="keywordtype">float</span>* a);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    </div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a0abaeb690794c4a55e74c9b5fd82d138">   62</a></span>&#160;    <a class="code" href="classmingfx_1_1_matrix4.html#a0abaeb690794c4a55e74c9b5fd82d138">Matrix4</a>(<span class="keyword">const</span> std::vector&lt;float&gt; &amp;a);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a4bcf311614006c551f57d2b0dcd32d87">   65</a></span>&#160;    <a class="code" href="classmingfx_1_1_matrix4.html#a4bcf311614006c551f57d2b0dcd32d87">Matrix4</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a>&amp; m2);</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a8853a6b3fd0d08f1def5c9921bd47933">   68</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classmingfx_1_1_matrix4.html#a8853a6b3fd0d08f1def5c9921bd47933">~Matrix4</a>();</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a9ec2ee167a450cd7b992384e4cc5bb73">   71</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_matrix4.html#a9ec2ee167a450cd7b992384e4cc5bb73">operator==</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a>&amp; m2) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#ab186b0ae1ae669346c0718c2489cd71b">   74</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classmingfx_1_1_matrix4.html#ab186b0ae1ae669346c0718c2489cd71b">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a>&amp; m2) <span class="keyword">const</span>;</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_matrix4.html#a9ad8a8bc180ce213956d6d7d3fa19770">   77</a></span>&#160;    <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a>&amp; <a class="code" href="classmingfx_1_1_matrix4.html#a9ad8a8bc180ce213956d6d7d3fa19770">operator=</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a>&amp; m2);</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="l00082"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a2b7b30f23f08d70e83c7b7e01945dd3c">   82</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">float</span> * <a class="code" href="classmingfx_1_1_matrix4.html#a2b7b30f23f08d70e83c7b7e01945dd3c">value_ptr</a>() <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="l00086"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#acd64f0db45e255d61dde4f6fa10a4127">   86</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_matrix4.html#acd64f0db45e255d61dde4f6fa10a4127">operator[]</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> i) <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="l00090"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#af9b02807d81eac55d66238f246c53656">   90</a></span>&#160;    <span class="keywordtype">float</span>&amp; <a class="code" href="classmingfx_1_1_matrix4.html#af9b02807d81eac55d66238f246c53656">operator[]</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> i);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    </div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#aa324d0cec02c452fb938af28725d5df9">   94</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_matrix4.html#aa324d0cec02c452fb938af28725d5df9">operator()</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> row, <span class="keyword">const</span> <span class="keywordtype">int</span> col) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a470bba77b8e3c47de7adaa18046e6096">   98</a></span>&#160;    <span class="keywordtype">float</span>&amp; <a class="code" href="classmingfx_1_1_matrix4.html#a470bba77b8e3c47de7adaa18046e6096">operator()</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> row, <span class="keyword">const</span> <span class="keywordtype">int</span> col);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    </div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    </div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a7396dbff36cb732e1bd878020f52bbc3">  105</a></span>&#160;    <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> <a class="code" href="classmingfx_1_1_matrix4.html#a7396dbff36cb732e1bd878020f52bbc3">ColumnToVector3</a>(<span class="keywordtype">int</span> c) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#ae991be2b3bca290b44e676a9f8dc13bd">  109</a></span>&#160;    <a class="code" href="classmingfx_1_1_point3.html">Point3</a> <a class="code" href="classmingfx_1_1_matrix4.html#ae991be2b3bca290b44e676a9f8dc13bd">ColumnToPoint3</a>(<span class="keywordtype">int</span> c) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    </div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a4e9433f0482b5e9688c12398900608db">  111</a></span>&#160;    std::vector&lt;float&gt; <a class="code" href="classmingfx_1_1_matrix4.html#a4e9433f0482b5e9688c12398900608db">ToVector</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160; </div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="comment">// --- Static Constructors for Special Matrices ---</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    </div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#add98bfa1cf6a10dbae0e8ae8defe728b">  122</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_matrix4.html#add98bfa1cf6a10dbae0e8ae8defe728b">FromRowMajorElements</a>(</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">float</span> r1c1, <span class="keyword">const</span> <span class="keywordtype">float</span> r1c2, <span class="keyword">const</span> <span class="keywordtype">float</span> r1c3, <span class="keyword">const</span> <span class="keywordtype">float</span> r1c4,</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">float</span> r2c1, <span class="keyword">const</span> <span class="keywordtype">float</span> r2c2, <span class="keyword">const</span> <span class="keywordtype">float</span> r2c3, <span class="keyword">const</span> <span class="keywordtype">float</span> r2c4,</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">float</span> r3c1, <span class="keyword">const</span> <span class="keywordtype">float</span> r3c2, <span class="keyword">const</span> <span class="keywordtype">float</span> r3c3, <span class="keyword">const</span> <span class="keywordtype">float</span> r3c4,</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">float</span> r4c1, <span class="keyword">const</span> <span class="keywordtype">float</span> r4c2, <span class="keyword">const</span> <span class="keywordtype">float</span> r4c3, <span class="keyword">const</span> <span class="keywordtype">float</span> r4c4</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    );</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="comment">// --- Model Transformations ---</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    </div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a0232a58d20b1da5374cf8c72fb113a4e">  132</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_matrix4.html#a0232a58d20b1da5374cf8c72fb113a4e">Scale</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="l00133"></a><span class="lineno">  133</span>&#160; </div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#ae82bab81df82dc03f5eb11e74ba1dd84">  135</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_matrix4.html#ae82bab81df82dc03f5eb11e74ba1dd84">Translation</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="l00136"></a><span class="lineno">  136</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a48615deb30590055c0aa9f207eee7f08">  138</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_matrix4.html#a48615deb30590055c0aa9f207eee7f08">RotationX</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> radians);</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="classmingfx_1_1_matrix4.html#aef94f0e9d298a7ba57e0119ef09b71b6">  141</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_matrix4.html#aef94f0e9d298a7ba57e0119ef09b71b6">RotationY</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> radians);</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="classmingfx_1_1_matrix4.html#a4bf1dced8875fdc5827b5b8869e9de93">  144</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_matrix4.html#a4bf1dced8875fdc5827b5b8869e9de93">RotationZ</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> radians);</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="classmingfx_1_1_matrix4.html#acf4abaf4a45826f14b435edf80a8d0e0">  147</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_matrix4.html#acf4abaf4a45826f14b435edf80a8d0e0">Rotation</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, <span class="keyword">const</span> <span class="keywordtype">float</span> a);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160; </div>
<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#ae61cdabb318a03cd4dae8a1c8ecafa4d">  173</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_matrix4.html#ae61cdabb318a03cd4dae8a1c8ecafa4d">Align</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point3.html">Point3</a> &amp;a_p, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &amp;a_v1, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &amp;a_v2,</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;                         <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point3.html">Point3</a> &amp;b_p, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &amp;b_v1, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> &amp;b_v2);</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">// --- View Matrices ---</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    </div>
<div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a4543695a6dfc996d0312b70c2eaa00de">  183</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_matrix4.html#a4543695a6dfc996d0312b70c2eaa00de">LookAt</a>(<a class="code" href="classmingfx_1_1_point3.html">Point3</a> eye, <a class="code" href="classmingfx_1_1_point3.html">Point3</a> target, <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> up);</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160; </div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="comment">// --- Projection Matrices ---</span></div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    </div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a0e34aee86758a0397074590b87712c5e">  189</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_matrix4.html#a0e34aee86758a0397074590b87712c5e">Perspective</a>(<span class="keywordtype">float</span> fov_y_in_degrees, <span class="keywordtype">float</span> aspect_ratio, <span class="keywordtype">float</span> near_plane_dist, <span class="keywordtype">float</span> far_plane_dist);</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    </div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a8e2f7b50cd2c8853e007829df9863722">  192</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_matrix4.html#a8e2f7b50cd2c8853e007829df9863722">Frustum</a>(<span class="keywordtype">float</span> left, <span class="keywordtype">float</span> right, <span class="keywordtype">float</span> bottom, <span class="keywordtype">float</span> top, <span class="keywordtype">float</span> near_plane_dist, <span class="keywordtype">float</span> far_plane_dist);</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160; </div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="comment">// --- Inverse, Transposeand Other General Matrix Functions ---</span></div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#ab3f360906e15730eee621826b5f0bbc5">  198</a></span>&#160;    <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_matrix4.html#ab3f360906e15730eee621826b5f0bbc5">Inverse</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    </div>
<div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a9ad5c85784e84fa0a941361eaaae0250">  204</a></span>&#160;    <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_matrix4.html#a9ad5c85784e84fa0a941361eaaae0250">Orthonormal</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160; </div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#afd1030205567d23d4a2d1240d8214850">  207</a></span>&#160;    <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_matrix4.html#afd1030205567d23d4a2d1240d8214850">Transpose</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160; </div>
<div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a3d9898bfac2510a695df6b033054e481">  211</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_matrix4.html#a3d9898bfac2510a695df6b033054e481">SubDeterminant</a>(<span class="keywordtype">int</span> exclude_row, <span class="keywordtype">int</span> exclude_col) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160; </div>
<div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a0d88ba8e15325d135157d115f2412e91">  214</a></span>&#160;    <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_matrix4.html#a0d88ba8e15325d135157d115f2412e91">Cofactor</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160; </div>
<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="classmingfx_1_1_matrix4.html#a0127ebae92b50e4f10ebee8565b0248c">  217</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_matrix4.html#a0127ebae92b50e4f10ebee8565b0248c">Determinant</a>() <span class="keyword">const</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; </div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    <span class="keywordtype">float</span> m[16];</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;};</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160; </div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160; </div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160; </div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;<span class="comment">// ---------- Operator Overloads for Working with Points, Vectors, &amp; Matrices ---------- </span></div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160; </div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160; </div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;<span class="comment">// --- Matrix multiplication for Points, Vectors, &amp; Matrices ---</span></div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160; </div>
<div class="line"><a name="l00233"></a><span class="lineno"><a class="line" href="namespacemingfx.html#ae5708e414f585dde2a5418ddae259a57">  233</a></span>&#160;<a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="namespacemingfx.html#ae5708e414f585dde2a5418ddae259a57">operator*</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a>&amp; m, <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; s);</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160; </div>
<div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a061ff38340cf1aad4612790b0a600aeb">  236</a></span>&#160;<a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="namespacemingfx.html#ae5708e414f585dde2a5418ddae259a57">operator*</a>(<span class="keyword">const</span> <span class="keywordtype">float</span>&amp; s, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a>&amp; m);</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160; </div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a5b8dabff5d6c9ddcef5e15b0ef807c80">  239</a></span>&#160;<a class="code" href="classmingfx_1_1_point3.html">Point3</a> <a class="code" href="namespacemingfx.html#ae5708e414f585dde2a5418ddae259a57">operator*</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a>&amp; m, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_point3.html">Point3</a>&amp; p);</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160; </div>
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="namespacemingfx.html#abb2cfd42e696494e4797d8f7e11f6d77">  242</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_matrix4.html">Matrix4</a>&amp; m, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a>&amp; v);</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160; </div>
<div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="namespacemingfx.html#aadc0e86a31d54469e730669067b102c2">  245</a></span>&#160;<a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="namespacemingfx.html#ae5708e414f585dde2a5418ddae259a57">operator*</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a>&amp; m1, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a>&amp; m2);</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160; </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;    </div>
<div class="line"><a name="l00250"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a1af1c07624961984759120b7af7f9ce4">  250</a></span>&#160;<a class="code" href="classmingfx_1_1_ray.html">Ray</a> <a class="code" href="namespacemingfx.html#ae5708e414f585dde2a5418ddae259a57">operator*</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a>&amp; m, <span class="keyword">const</span> <a class="code" href="classmingfx_1_1_ray.html">Ray</a>&amp; r);</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    </div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;<span class="comment">// --- Stream operators ---</span></div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160; </div>
<div class="line"><a name="l00254"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a1584104dea1f0a5636c868b67ddf6b10">  254</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_matrix4.html">Matrix4</a> &amp;m);</div>
<div class="line"><a name="l00255"></a><span class="lineno"><a class="line" href="namespacemingfx.html#a05fc1c0b2b6011283c019242d6a2de74">  255</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_matrix4.html">Matrix4</a> &amp;m);</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160; </div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    </div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;} <span class="comment">// end namespace</span></div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160; </div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html"><div class="ttname"><a href="classmingfx_1_1_matrix4.html">mingfx::Matrix4</a></div><div class="ttdoc">A 4x4 transformation matrix stored internally as an array of floats in column-major order so as to be...</div><div class="ttdef"><b>Definition:</b> <a href="matrix4_8h_source.html#l00050">matrix4.h:50</a></div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a0127ebae92b50e4f10ebee8565b0248c"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a0127ebae92b50e4f10ebee8565b0248c">mingfx::Matrix4::Determinant</a></div><div class="ttdeci">float Determinant() const</div><div class="ttdoc">Returns the determinant of the 4x4 matrix.</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a0232a58d20b1da5374cf8c72fb113a4e"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a0232a58d20b1da5374cf8c72fb113a4e">mingfx::Matrix4::Scale</a></div><div class="ttdeci">static Matrix4 Scale(const Vector3 &amp;v)</div><div class="ttdoc">Returns the scale matrix described by the vector.</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a09a366a3ef940ff355f8d5c521baa57d"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a09a366a3ef940ff355f8d5c521baa57d">mingfx::Matrix4::Matrix4</a></div><div class="ttdeci">Matrix4(const float *a)</div><div class="ttdoc">Constructs a matrix given from an array of 16 floats in OpenGL matrix format (i.e....</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a0abaeb690794c4a55e74c9b5fd82d138"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a0abaeb690794c4a55e74c9b5fd82d138">mingfx::Matrix4::Matrix4</a></div><div class="ttdeci">Matrix4(const std::vector&lt; float &gt; &amp;a)</div><div class="ttdoc">Constructs a matrix given from a vector of 16 floats in OpenGL matrix format (i.e....</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a0d88ba8e15325d135157d115f2412e91"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a0d88ba8e15325d135157d115f2412e91">mingfx::Matrix4::Cofactor</a></div><div class="ttdeci">Matrix4 Cofactor() const</div><div class="ttdoc">Returns the cofactor matrix.</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a0e34aee86758a0397074590b87712c5e"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a0e34aee86758a0397074590b87712c5e">mingfx::Matrix4::Perspective</a></div><div class="ttdeci">static Matrix4 Perspective(float fov_y_in_degrees, float aspect_ratio, float near_plane_dist, float far_plane_dist)</div><div class="ttdoc">Returns a perspective projection matrix equivalent to the one gluPerspective creates.</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a2b7b30f23f08d70e83c7b7e01945dd3c"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a2b7b30f23f08d70e83c7b7e01945dd3c">mingfx::Matrix4::value_ptr</a></div><div class="ttdeci">const float * value_ptr() const</div><div class="ttdoc">Returns a pointer to the raw data array used to store the matrix. This is a 1D array of 16-elements s...</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a3d9898bfac2510a695df6b033054e481"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a3d9898bfac2510a695df6b033054e481">mingfx::Matrix4::SubDeterminant</a></div><div class="ttdeci">float SubDeterminant(int exclude_row, int exclude_col) const</div><div class="ttdoc">Returns the determinant of the 3x3 matrix formed by excluding the specified row and column from the 4...</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a4543695a6dfc996d0312b70c2eaa00de"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a4543695a6dfc996d0312b70c2eaa00de">mingfx::Matrix4::LookAt</a></div><div class="ttdeci">static Matrix4 LookAt(Point3 eye, Point3 target, Vector3 up)</div><div class="ttdoc">Returns a view matrix that centers the camera at the 'eye' position and orients it to look at the des...</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a470bba77b8e3c47de7adaa18046e6096"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a470bba77b8e3c47de7adaa18046e6096">mingfx::Matrix4::operator()</a></div><div class="ttdeci">float &amp; operator()(const int row, const int col)</div><div class="ttdoc">Access an individual element of the array using the syntax: Matrix4 mat; mat(1,2) = 1....</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a48615deb30590055c0aa9f207eee7f08"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a48615deb30590055c0aa9f207eee7f08">mingfx::Matrix4::RotationX</a></div><div class="ttdeci">static Matrix4 RotationX(const float radians)</div><div class="ttdoc">Returns the rotation matrix about the x axis by the specified angle.</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a4bcf311614006c551f57d2b0dcd32d87"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a4bcf311614006c551f57d2b0dcd32d87">mingfx::Matrix4::Matrix4</a></div><div class="ttdeci">Matrix4(const Matrix4 &amp;m2)</div><div class="ttdoc">Copy constructor.</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a4bf1dced8875fdc5827b5b8869e9de93"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a4bf1dced8875fdc5827b5b8869e9de93">mingfx::Matrix4::RotationZ</a></div><div class="ttdeci">static Matrix4 RotationZ(const float radians)</div><div class="ttdoc">Returns the rotation matrix about the z axis by the specified angle.</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a4e9433f0482b5e9688c12398900608db"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a4e9433f0482b5e9688c12398900608db">mingfx::Matrix4::ToVector</a></div><div class="ttdeci">std::vector&lt; float &gt; ToVector() const</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a50990f00b756d640670a0b02129afd22"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a50990f00b756d640670a0b02129afd22">mingfx::Matrix4::Matrix4</a></div><div class="ttdeci">Matrix4()</div><div class="ttdoc">The default constructor creates an identity matrix:</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a7396dbff36cb732e1bd878020f52bbc3"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a7396dbff36cb732e1bd878020f52bbc3">mingfx::Matrix4::ColumnToVector3</a></div><div class="ttdeci">Vector3 ColumnToVector3(int c) const</div><div class="ttdoc">Returns the c-th column of the matrix as a Vector type, e.g.,: Vector3 xAxis = mat....</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a8853a6b3fd0d08f1def5c9921bd47933"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a8853a6b3fd0d08f1def5c9921bd47933">mingfx::Matrix4::~Matrix4</a></div><div class="ttdeci">virtual ~Matrix4()</div><div class="ttdoc">Destructor.</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a8e2f7b50cd2c8853e007829df9863722"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a8e2f7b50cd2c8853e007829df9863722">mingfx::Matrix4::Frustum</a></div><div class="ttdeci">static Matrix4 Frustum(float left, float right, float bottom, float top, float near_plane_dist, float far_plane_dist)</div><div class="ttdoc">Returns a projection matrix equivalent the one glFrustum creates.</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a9ad5c85784e84fa0a941361eaaae0250"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a9ad5c85784e84fa0a941361eaaae0250">mingfx::Matrix4::Orthonormal</a></div><div class="ttdeci">Matrix4 Orthonormal() const</div><div class="ttdoc">Returns an orthonormal version of the matrix, i.e., guarantees that the rotational component of the m...</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a9ad8a8bc180ce213956d6d7d3fa19770"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a9ad8a8bc180ce213956d6d7d3fa19770">mingfx::Matrix4::operator=</a></div><div class="ttdeci">Matrix4 &amp; operator=(const Matrix4 &amp;m2)</div><div class="ttdoc">Matrix assignment operator.</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_a9ec2ee167a450cd7b992384e4cc5bb73"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#a9ec2ee167a450cd7b992384e4cc5bb73">mingfx::Matrix4::operator==</a></div><div class="ttdeci">bool operator==(const Matrix4 &amp;m2) 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_matrix4_html_aa324d0cec02c452fb938af28725d5df9"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#aa324d0cec02c452fb938af28725d5df9">mingfx::Matrix4::operator()</a></div><div class="ttdeci">float operator()(const int row, const int col) const</div><div class="ttdoc">Access an individual element of the array using the syntax: Matrix4 mat; float row1col2 = mat(1,...</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_ab186b0ae1ae669346c0718c2489cd71b"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#ab186b0ae1ae669346c0718c2489cd71b">mingfx::Matrix4::operator!=</a></div><div class="ttdeci">bool operator!=(const Matrix4 &amp;m2) 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_matrix4_html_ab3f360906e15730eee621826b5f0bbc5"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#ab3f360906e15730eee621826b5f0bbc5">mingfx::Matrix4::Inverse</a></div><div class="ttdeci">Matrix4 Inverse() const</div><div class="ttdoc">Returns the inverse of the 4x4 matrix if it is nonsingular. If it is singular, then returns the ident...</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_acd64f0db45e255d61dde4f6fa10a4127"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#acd64f0db45e255d61dde4f6fa10a4127">mingfx::Matrix4::operator[]</a></div><div class="ttdeci">float operator[](const int i) const</div><div class="ttdoc">Accesses the ith element of the raw data array used to store the matrix. This is a 1D array of 16-ele...</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_acf4abaf4a45826f14b435edf80a8d0e0"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#acf4abaf4a45826f14b435edf80a8d0e0">mingfx::Matrix4::Rotation</a></div><div class="ttdeci">static Matrix4 Rotation(const Point3 &amp;p, const Vector3 &amp;v, const float a)</div><div class="ttdoc">Returns the rotation matrix around the vector v placed at point p, rotate by angle a.</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_add98bfa1cf6a10dbae0e8ae8defe728b"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#add98bfa1cf6a10dbae0e8ae8defe728b">mingfx::Matrix4::FromRowMajorElements</a></div><div class="ttdeci">static Matrix4 FromRowMajorElements(const float r1c1, const float r1c2, const float r1c3, const float r1c4, const float r2c1, const float r2c2, const float r2c3, const float r2c4, const float r3c1, const float r3c2, const float r3c3, const float r3c4, const float r4c1, const float r4c2, const float r4c3, const float r4c4)</div><div class="ttdoc">Returns a matrix constructed from individual elements passed in row major order so that the matrix lo...</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_ae61cdabb318a03cd4dae8a1c8ecafa4d"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#ae61cdabb318a03cd4dae8a1c8ecafa4d">mingfx::Matrix4::Align</a></div><div class="ttdeci">static Matrix4 Align(const Point3 &amp;a_p, const Vector3 &amp;a_v1, const Vector3 &amp;a_v2, const Point3 &amp;b_p, const Vector3 &amp;b_v1, const Vector3 &amp;b_v2)</div><div class="ttdoc">Creates a transformation matrix that maps a coordinate space, a, defined one point,...</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_ae82bab81df82dc03f5eb11e74ba1dd84"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#ae82bab81df82dc03f5eb11e74ba1dd84">mingfx::Matrix4::Translation</a></div><div class="ttdeci">static Matrix4 Translation(const Vector3 &amp;v)</div><div class="ttdoc">Returns the translation matrix described by the vector.</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_ae991be2b3bca290b44e676a9f8dc13bd"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#ae991be2b3bca290b44e676a9f8dc13bd">mingfx::Matrix4::ColumnToPoint3</a></div><div class="ttdeci">Point3 ColumnToPoint3(int c) const</div><div class="ttdoc">Returns the c-th column of the matrix as a Vector type, e.g.,: Point3 pos = mat.getColumnAsPoint3(3);...</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_aef94f0e9d298a7ba57e0119ef09b71b6"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#aef94f0e9d298a7ba57e0119ef09b71b6">mingfx::Matrix4::RotationY</a></div><div class="ttdeci">static Matrix4 RotationY(const float radians)</div><div class="ttdoc">Returns the rotation matrix about the y axis by the specified angle.</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_af9b02807d81eac55d66238f246c53656"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#af9b02807d81eac55d66238f246c53656">mingfx::Matrix4::operator[]</a></div><div class="ttdeci">float &amp; operator[](const int i)</div><div class="ttdoc">Accesses the ith element of the raw data array used to store the matrix. This is a 1D array of 16-ele...</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html_afd1030205567d23d4a2d1240d8214850"><div class="ttname"><a href="classmingfx_1_1_matrix4.html#afd1030205567d23d4a2d1240d8214850">mingfx::Matrix4::Transpose</a></div><div class="ttdeci">Matrix4 Transpose() const</div><div class="ttdoc">Returns the transpose of the matrix.</div></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_ray_html"><div class="ttname"><a href="classmingfx_1_1_ray.html">mingfx::Ray</a></div><div class="ttdoc">Stores the mathematical object of a ray that begins at an origin (a 3D point) and points in a directi...</div><div class="ttdef"><b>Definition:</b> <a href="ray_8h_source.html#l00054">ray.h:54</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="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_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 class="ttc" id="aray_8h_html"><div class="ttname"><a href="ray_8h.html">ray.h</a></div></div>
<div class="ttc" id="avector3_8h_html"><div class="ttname"><a href="vector3_8h.html">vector3.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>