source: NonGTP/FCollada/Documentation/_f_m_matrix44_8h-source.html @ 964

Revision 964, 8.9 KB checked in by igarcia, 18 years ago (diff)
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3<title>FCollada: FMath/FMMatrix44.h Source File</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.4.6-NO -->
8<div class="tabs">
9  <ul>
10    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11    <li><a href="modules.html"><span>Modules</span></a></li>
12    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13    <li><a href="classes.html"><span>Classes</span></a></li>
14    <li id="current"><a href="files.html"><span>Files</span></a></li>
15    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
16  </ul></div>
17<div class="tabs">
18  <ul>
19    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
20    <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
21  </ul></div>
22<h1>FMath/FMMatrix44.h</h1><a href="_f_m_matrix44_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
23<a name="l00002"></a>00002 <span class="comment">    Copyright (C) 2005-2006 Feeling Software Inc.</span>
24<a name="l00003"></a>00003 <span class="comment">    MIT License: http://www.opensource.org/licenses/mit-license.php</span>
25<a name="l00004"></a>00004 <span class="comment">*/</span>
26<a name="l00005"></a>00005
27<a name="l00011"></a>00011 <span class="preprocessor">#ifndef _FM_MATRIX44_H_</span>
28<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define _FM_MATRIX44_H_</span>
29<a name="l00013"></a>00013 <span class="preprocessor"></span>
30<a name="l00019"></a><a class="code" href="class_f_m_matrix44.html">00019</a> <span class="keyword">class </span>FCOLLADA_EXPORT <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a>
31<a name="l00020"></a>00020 {
32<a name="l00021"></a>00021 <span class="keyword">public</span>:
33<a name="l00022"></a><a class="code" href="class_f_m_matrix44.html#709b1f27940c291ea1482866d3a165d0">00022</a>     <span class="keywordtype">float</span> m[4][4]; 
34<a name="l00033"></a>00033 <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a>(<span class="keyword">const</span> <span class="keywordtype">float</span>* _m);
35<a name="l00034"></a>00034
36<a name="l00040"></a>00040 <span class="preprocessor">    #ifndef _DEBUG</span>
37<a name="l00041"></a><a class="code" href="class_f_m_matrix44.html#4be1466ca31038675d9b74f260529a91">00041</a> <span class="preprocessor"></span>    <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a>() {}
38<a name="l00042"></a>00042 <span class="preprocessor">    #else</span>
39<a name="l00043"></a>00043 <span class="preprocessor"></span>    <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a>() { memset(m, 55, 16 * <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)); }
40<a name="l00044"></a>00044 <span class="preprocessor">    #endif </span>
41<a name="l00045"></a>00045 <span class="preprocessor"></span>
42<a name="l00055"></a><a class="code" href="class_f_m_matrix44.html#f14d21c32d852a9c6f70e198df360276">00055</a>     operator float*() { <span class="keywordflow">return</span> &amp;m[0][0]; }
43<a name="l00056"></a>00056
44<a name="l00066"></a><a class="code" href="class_f_m_matrix44.html#e57b4d31db4f88641f33bcb2550e9350">00066</a>     operator const float*()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> &amp;m[0][0]; }
45<a name="l00067"></a>00067
46<a name="l00074"></a><a class="code" href="class_f_m_matrix44.html#9bba9e2b3c62346c507383dce1b5eb6b">00074</a>     <span class="keywordtype">float</span>* operator[](<span class="keywordtype">int</span> a) { <span class="keywordflow">return</span> m[a]; }
47<a name="l00075"></a>00075
48<a name="l00082"></a><a class="code" href="class_f_m_matrix44.html#ed52da10cf2d431c858fa93937d51657">00082</a>     <span class="keyword">const</span> <span class="keywordtype">float</span>* operator[](<span class="keywordtype">int</span> a)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m[a]; }
49<a name="l00083"></a>00083
50<a name="l00091"></a>00091 <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a>&amp; copy);
51<a name="l00092"></a>00092
52<a name="l00098"></a>00098 <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a> Transposed() <span class="keyword">const</span>;
53<a name="l00099"></a>00099
54<a name="l00105"></a>00105 <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a> Inverted() <span class="keyword">const</span>;
55<a name="l00106"></a>00106     
56<a name="l00117"></a>00117 <span class="keywordtype">void</span> Decompose(<a class="code" href="class_f_m_vector3.html">FMVector3</a>&amp; Scale, <a class="code" href="class_f_m_vector3.html">FMVector3</a>&amp; Rotation, <a class="code" href="class_f_m_vector3.html">FMVector3</a>&amp; Translation, <span class="keywordtype">float</span>&amp; inverted) <span class="keyword">const</span>;
57<a name="l00118"></a>00118
58<a name="l00125"></a>00125 <a class="code" href="class_f_m_vector3.html">FMVector3</a> TransformCoordinate(<span class="keyword">const</span> <a class="code" href="class_f_m_vector3.html">FMVector3</a>&amp; coordinate) <span class="keyword">const</span>;
59<a name="l00126"></a>00126
60<a name="l00133"></a>00133 <a class="code" href="class_f_m_vector3.html">FMVector3</a> TransformVector(<span class="keyword">const</span> <a class="code" href="class_f_m_vector3.html">FMVector3</a>&amp; v) <span class="keyword">const</span>;
61<a name="l00134"></a>00134
62<a name="l00140"></a>00140 <a class="code" href="class_f_m_vector3.html">FMVector3</a> GetTranslation() <span class="keyword">const</span>;
63<a name="l00141"></a>00141
64<a name="l00142"></a>00142 <span class="keyword">public</span>:
65<a name="l00143"></a><a class="code" href="class_f_m_matrix44.html#6ec620d68ab61a95e3b4b5f7e7300468">00143</a>     <span class="keyword">static</span> <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a> Identity;
66<a name="l00154"></a>00154 <span class="keyword">static</span> <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a> TranslationMatrix(<span class="keyword">const</span> <a class="code" href="class_f_m_vector3.html">FMVector3</a>&amp; translation);
67<a name="l00155"></a>00155
68<a name="l00164"></a>00164 <span class="keyword">static</span> <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a> AxisRotationMatrix(<span class="keyword">const</span> <a class="code" href="class_f_m_vector3.html">FMVector3</a>&amp; axis, <span class="keywordtype">float</span> angle);
69<a name="l00165"></a>00165 };
70<a name="l00166"></a>00166
71<a name="l00174"></a>00174 <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a> FCOLLADA_EXPORT <a class="code" href="_f_m_color_8h.html#58f3a16b2bf52b6aab8c7143d202a02a">operator*</a>(<span class="keyword">const</span> <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a>&amp; m1, <span class="keyword">const</span> <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a>&amp; m2);
72<a name="l00175"></a>00175
73<a name="l00182"></a>00182 <span class="keywordtype">bool</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(<span class="keyword">const</span> <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a>&amp; m1, <span class="keyword">const</span> <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a>&amp; m2);
74<a name="l00183"></a>00183
75<a name="l00190"></a><a class="code" href="_f_m_matrix44_8h.html#50948795a56eefc94456157d12214892">00190</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_f_m_matrix44_8h.html#50948795a56eefc94456157d12214892">operator==</a>(<span class="keyword">const</span> <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a>&amp; m1, <span class="keyword">const</span> <a class="code" href="class_f_m_matrix44.html">FMMatrix44</a>&amp; m2) { <span class="keywordflow">return</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(m1, m2); }
76<a name="l00191"></a>00191
77<a name="l00193"></a><a class="code" href="_f_m_matrix44_8h.html#3a02977137a34f818bf3935ca0d4dcf8">00193</a> <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector&lt;FMMatrix44&gt;</a> <a class="code" href="classvector.html">FMMatrix44List</a>;
78<a name="l00194"></a>00194
79<a name="l00195"></a>00195 <span class="preprocessor">#endif // _FM_MATRIX44_H_</span>
80</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:39 2006 for FCollada by&nbsp;
81<a href="http://www.doxygen.org/index.html">
82<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
83</body>
84</html>
Note: See TracBrowser for help on using the repository browser.