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

Revision 964, 7.4 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/FMMatrix33.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/FMMatrix33.h</h1><a href="_f_m_matrix33_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_MATRIX33_H_</span>
28<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define _FM_MATRIX33_H_</span>
29<a name="l00013"></a>00013 <span class="preprocessor"></span>
30<a name="l00020"></a><a class="code" href="class_f_m_matrix33.html">00020</a> <span class="keyword">class </span>FCOLLADA_EXPORT <a class="code" href="class_f_m_matrix33.html">FMMatrix33</a>
31<a name="l00021"></a>00021 {
32<a name="l00022"></a>00022 <span class="keyword">public</span>:
33<a name="l00023"></a><a class="code" href="class_f_m_matrix33.html#7cb9ef5c51c1e7610e43d1ba923e4269">00023</a>     <span class="keywordtype">float</span> m[3][3]; 
34<a name="l00033"></a>00033     <a class="code" href="class_f_m_matrix33.html">FMMatrix33</a>(<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_matrix33.html#ce369b9695f0110475ab09200f914aa6">00041</a> <span class="preprocessor"></span>    <a class="code" href="class_f_m_matrix33.html">FMMatrix33</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_matrix33.html">FMMatrix33</a>() { memset(m, 55, 3 * 3 * <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="l00054"></a><a class="code" href="class_f_m_matrix33.html#723877ff60d022ec7bb051947a73652b">00054</a>     operator float*() { <span class="keywordflow">return</span> &amp;m[0][0]; }
43<a name="l00055"></a>00055
44<a name="l00064"></a><a class="code" href="class_f_m_matrix33.html#0b4c98e78d0a6aff94cd0b9df52b723e">00064</a>     operator const float*()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> &amp;m[0][0]; }
45<a name="l00065"></a>00065
46<a name="l00072"></a><a class="code" href="class_f_m_matrix33.html#17914c286b1df2f8e1727fe9416435e7">00072</a>     <span class="keywordtype">float</span>* operator[](<span class="keywordtype">int</span> a) { <span class="keywordflow">return</span> m[a]; }
47<a name="l00073"></a>00073
48<a name="l00081"></a>00081 <a class="code" href="class_f_m_matrix33.html">FMMatrix33</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="class_f_m_matrix33.html">FMMatrix33</a>&amp; copy);
49<a name="l00082"></a>00082
50<a name="l00088"></a>00088 <a class="code" href="class_f_m_matrix33.html">FMMatrix33</a> Transposed() <span class="keyword">const</span>;
51<a name="l00089"></a>00089
52<a name="l00095"></a>00095 <a class="code" href="class_f_m_matrix33.html">FMMatrix33</a> Inverted() <span class="keyword">const</span>;
53<a name="l00096"></a>00096
54<a name="l00097"></a>00097 <span class="keyword">public</span>:
55<a name="l00098"></a><a class="code" href="class_f_m_matrix33.html#aed39a65535b75afa28af7409ec5f0b8">00098</a>     <span class="keyword">static</span> <a class="code" href="class_f_m_matrix33.html">FMMatrix33</a> identity;
56<a name="l00107"></a>00107 <span class="keyword">static</span> <a class="code" href="class_f_m_matrix33.html">FMMatrix33</a> RotationMatrix(<span class="keywordtype">float</span> angle);
57<a name="l00108"></a>00108
58<a name="l00116"></a>00116 <span class="keyword">static</span> <a class="code" href="class_f_m_matrix33.html">FMMatrix33</a> TranslationMatrix(<span class="keywordtype">float</span> tx, <span class="keywordtype">float</span> ty);
59<a name="l00117"></a>00117     
60<a name="l00125"></a>00125 <span class="keyword">static</span> <a class="code" href="class_f_m_matrix33.html">FMMatrix33</a> ScaleMatrix(<span class="keywordtype">float</span> sx, <span class="keywordtype">float</span> sy);
61<a name="l00126"></a>00126
62<a name="l00136"></a><a class="code" href="class_f_m_matrix33.html#8c3951ad39dd4aa16b82f4baf2e22c2c">00136</a>     <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="class_f_m_matrix33.html">FMMatrix33</a> TranslationMatrix(<a class="code" href="class_f_m_vector2.html">FMVector2</a> translation) { <span class="keywordflow">return</span> TranslationMatrix(translation.<a class="code" href="class_f_m_vector2.html#e9271c21509c9a23fdeaacb30e3ec49f">u</a>, translation.<a class="code" href="class_f_m_vector2.html#d336a3412e6070c3419df8a82ccdfeac">v</a>); }
63<a name="l00137"></a>00137
64<a name="l00147"></a><a class="code" href="class_f_m_matrix33.html#a8d1703c15367aca1106ed6a20e4cb32">00147</a>     <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="class_f_m_matrix33.html">FMMatrix33</a> ScaleMatrix(<a class="code" href="class_f_m_vector2.html">FMVector2</a> scale) { <span class="keywordflow">return</span> ScaleMatrix(scale.<a class="code" href="class_f_m_vector2.html#e9271c21509c9a23fdeaacb30e3ec49f">u</a>, scale.<a class="code" href="class_f_m_vector2.html#d336a3412e6070c3419df8a82ccdfeac">v</a>); }
65<a name="l00148"></a>00148 };
66<a name="l00149"></a>00149
67<a name="l00157"></a>00157 <a class="code" href="class_f_m_matrix33.html">FMMatrix33</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_matrix33.html">FMMatrix33</a>&amp; m1, <span class="keyword">const</span> <a class="code" href="class_f_m_matrix33.html">FMMatrix33</a>&amp; m2);
68<a name="l00158"></a>00158
69<a name="l00159"></a>00159 <span class="preprocessor">#endif // _FM_MATRIX33_H_</span>
70</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:39 2006 for FCollada by&nbsp;
71<a href="http://www.doxygen.org/index.html">
72<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
73</body>
74</html>
Note: See TracBrowser for help on using the repository browser.