<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Crystal Space 1.2.1: csgeom/transfrm.h Source File (Crystal Space 1.2.1 Public API Reference)</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head"> <tr height="59"> <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td> <td class="head"><h2>Public API Reference</h2></td> </tr> <tr height="11"> <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td> </tr> </table> <div class="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="classes.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <h1>csgeom/transfrm.h</h1><a href="transfrm_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> <a name="l00002"></a>00002 <span class="comment"> Copyright (C) 1998-2001 by Jorrit Tyberghein</span> <a name="l00003"></a>00003 <span class="comment"> Largely rewritten by Ivan Avramovic <ivan@avramovic.com></span> <a name="l00004"></a>00004 <span class="comment"></span> <a name="l00005"></a>00005 <span class="comment"> This library is free software; you can redistribute it and/or</span> <a name="l00006"></a>00006 <span class="comment"> modify it under the terms of the GNU Library General Public</span> <a name="l00007"></a>00007 <span class="comment"> License as published by the Free Software Foundation; either</span> <a name="l00008"></a>00008 <span class="comment"> version 2 of the License, or (at your option) any later version.</span> <a name="l00009"></a>00009 <span class="comment"></span> <a name="l00010"></a>00010 <span class="comment"> This library is distributed in the hope that it will be useful,</span> <a name="l00011"></a>00011 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00012"></a>00012 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> <a name="l00013"></a>00013 <span class="comment"> Library General Public License for more details.</span> <a name="l00014"></a>00014 <span class="comment"></span> <a name="l00015"></a>00015 <span class="comment"> You should have received a copy of the GNU Library General Public</span> <a name="l00016"></a>00016 <span class="comment"> License along with this library; if not, write to the Free</span> <a name="l00017"></a>00017 <span class="comment"> Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span> <a name="l00018"></a>00018 <span class="comment">*/</span> <a name="l00019"></a>00019 <a name="l00020"></a>00020 <span class="preprocessor">#ifndef __CS_TRANSFORM_H__</span> <a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define __CS_TRANSFORM_H__</span> <a name="l00022"></a>00022 <span class="preprocessor"></span> <a name="l00030"></a>00030 <span class="preprocessor">#include "csextern.h"</span> <a name="l00031"></a>00031 <a name="l00032"></a>00032 <a name="l00033"></a>00033 <span class="preprocessor">#include "<a class="code" href="matrix3_8h.html" title="3x3 matrix.">csgeom/matrix3.h</a>"</span> <a name="l00034"></a>00034 <span class="preprocessor">#include "<a class="code" href="vector3_8h.html" title="3D vector.">csgeom/vector3.h</a>"</span> <a name="l00035"></a>00035 <a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>; <a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="classcsSphere.html" title="This class represents a sphere.">csSphere</a>; <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="keyword">class </span><a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>; <a name="l00040"></a>00040 <a name="l00047"></a><a class="code" href="classcsTransform.html">00047</a> <span class="keyword">class </span>CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a> <a name="l00048"></a>00048 { <a name="l00049"></a>00049 <span class="keyword">protected</span>: <a name="l00051"></a><a class="code" href="classcsTransform.html#7f5f51248980a3ebf56744520e6a3825">00051</a> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a> m_o2t; <a name="l00053"></a><a class="code" href="classcsTransform.html#155b35f82b56b9b7bbc8a0b2921d3c17">00053</a> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> v_o2t; <a name="l00054"></a>00054 <a name="l00055"></a>00055 <span class="keyword">public</span>: <a name="l00056"></a>00056 <span class="comment">// Needed for GCC4. Otherwise emits a flood of "virtual functions but</span> <a name="l00057"></a>00057 <span class="comment">// non-virtual destructor" warnings.</span> <a name="l00058"></a><a class="code" href="classcsTransform.html#dbc1a9a00f3be8ac0b8e753a12f3949f">00058</a> <span class="keyword">virtual</span> ~<a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>() {} <a name="l00062"></a><a class="code" href="classcsTransform.html#1b862dc9f2a33edd0db4814b71c26860">00062</a> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a> () : m_o2t (), v_o2t (0, 0, 0) {} <a name="l00063"></a>00063 <a name="l00071"></a><a class="code" href="classcsTransform.html#5e0ff99eda1b2e313b62cdfae53df4af">00071</a> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a> (<span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& other2this, <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& origin_pos) : <a name="l00072"></a>00072 m_o2t (other2this), v_o2t (origin_pos) {} <a name="l00073"></a>00073 <a name="l00077"></a><a class="code" href="classcsTransform.html#5a15bd122c990b1c1883ffd7321de32a">00077</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> Identity () <a name="l00078"></a>00078 { <a name="l00079"></a>00079 SetO2TTranslation (<a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> (0)); <a name="l00080"></a>00080 SetO2T (<a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a> ()); <a name="l00081"></a>00081 } <a name="l00082"></a>00082 <a name="l00087"></a><a class="code" href="classcsTransform.html#f126b287ca50a248475390d123872382">00087</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> IsIdentity ()<span class="keyword"> const</span> <a name="l00088"></a>00088 <span class="keyword"> </span>{ <a name="l00089"></a>00089 <span class="keywordflow">if</span> (<a class="code" href="group__geom__utils.html#g996f7be338ccb40d1a2a5abc1ad61759">ABS</a> (v_o2t.x) >= SMALL_EPSILON) <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00090"></a>00090 <span class="keywordflow">if</span> (<a class="code" href="group__geom__utils.html#g996f7be338ccb40d1a2a5abc1ad61759">ABS</a> (v_o2t.y) >= SMALL_EPSILON) <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00091"></a>00091 <span class="keywordflow">if</span> (<a class="code" href="group__geom__utils.html#g996f7be338ccb40d1a2a5abc1ad61759">ABS</a> (v_o2t.z) >= SMALL_EPSILON) <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00092"></a>00092 <span class="keywordflow">if</span> (<a class="code" href="group__geom__utils.html#g996f7be338ccb40d1a2a5abc1ad61759">ABS</a> (m_o2t.m11-1) >= SMALL_EPSILON) <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00093"></a>00093 <span class="keywordflow">if</span> (<a class="code" href="group__geom__utils.html#g996f7be338ccb40d1a2a5abc1ad61759">ABS</a> (m_o2t.m12) >= SMALL_EPSILON) <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00094"></a>00094 <span class="keywordflow">if</span> (<a class="code" href="group__geom__utils.html#g996f7be338ccb40d1a2a5abc1ad61759">ABS</a> (m_o2t.m13) >= SMALL_EPSILON) <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00095"></a>00095 <span class="keywordflow">if</span> (<a class="code" href="group__geom__utils.html#g996f7be338ccb40d1a2a5abc1ad61759">ABS</a> (m_o2t.m21) >= SMALL_EPSILON) <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00096"></a>00096 <span class="keywordflow">if</span> (<a class="code" href="group__geom__utils.html#g996f7be338ccb40d1a2a5abc1ad61759">ABS</a> (m_o2t.m22-1) >= SMALL_EPSILON) <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00097"></a>00097 <span class="keywordflow">if</span> (<a class="code" href="group__geom__utils.html#g996f7be338ccb40d1a2a5abc1ad61759">ABS</a> (m_o2t.m23) >= SMALL_EPSILON) <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00098"></a>00098 <span class="keywordflow">if</span> (<a class="code" href="group__geom__utils.html#g996f7be338ccb40d1a2a5abc1ad61759">ABS</a> (m_o2t.m31) >= SMALL_EPSILON) <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00099"></a>00099 <span class="keywordflow">if</span> (<a class="code" href="group__geom__utils.html#g996f7be338ccb40d1a2a5abc1ad61759">ABS</a> (m_o2t.m32) >= SMALL_EPSILON) <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00100"></a>00100 <span class="keywordflow">if</span> (<a class="code" href="group__geom__utils.html#g996f7be338ccb40d1a2a5abc1ad61759">ABS</a> (m_o2t.m33-1) >= SMALL_EPSILON) <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00101"></a>00101 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00102"></a>00102 } <a name="l00103"></a>00103 <a name="l00108"></a><a class="code" href="classcsTransform.html#6b9dc087bd425a9bc8fe1c35a127e7b3">00108</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& GetO2T ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_o2t; } <a name="l00109"></a>00109 <a name="l00115"></a><a class="code" href="classcsTransform.html#ddaca558caeb0026f10074a43192a6b3">00115</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& GetO2TTranslation ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> v_o2t; } <a name="l00116"></a>00116 <a name="l00122"></a><a class="code" href="classcsTransform.html#913ab986883038d0a450f07448d47c7d">00122</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& GetOrigin ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> v_o2t; } <a name="l00123"></a>00123 <a name="l00128"></a><a class="code" href="classcsTransform.html#8982b8df6c6260a98fbf9ac18ec0a681">00128</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetO2T (<span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& m) { m_o2t = m; } <a name="l00129"></a>00129 <a name="l00135"></a><a class="code" href="classcsTransform.html#1630a99216c2b2a39116f4c42ffbf649">00135</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetO2TTranslation (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& v) { v_o2t = v; } <a name="l00136"></a>00136 <a name="l00141"></a><a class="code" href="classcsTransform.html#5a12e267771bda04fee9a37c7d13d016">00141</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> SetOrigin (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& v) { SetO2TTranslation (v); } <a name="l00142"></a>00142 <a name="l00148"></a><a class="code" href="classcsTransform.html#23206c158aa7582116460d126a427df0">00148</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> Translate (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& v) { SetO2TTranslation (v_o2t + v); } <a name="l00149"></a>00149 <a name="l00155"></a><a class="code" href="classcsTransform.html#463655d40948540a2a5b2a867d5ba03c">00155</a> <span class="keyword">inline</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> Other2This (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& v)<span class="keyword"> const</span> <a name="l00156"></a>00156 <span class="keyword"> </span>{ <a name="l00157"></a>00157 <span class="keywordflow">return</span> m_o2t * (v - v_o2t); <a name="l00158"></a>00158 } <a name="l00159"></a>00159 <a name="l00165"></a><a class="code" href="classcsTransform.html#7a1a4a71f1a2406bca35ac678d53f92e">00165</a> <span class="keyword">inline</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> Other2ThisRelative (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& v)<span class="keyword"> const</span> <a name="l00166"></a>00166 <span class="keyword"> </span>{ <span class="keywordflow">return</span> m_o2t * v; } <a name="l00167"></a>00167 <a name="l00173"></a>00173 <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a> Other2This (<span class="keyword">const</span> <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& p) <span class="keyword">const</span>; <a name="l00174"></a>00174 <a name="l00181"></a>00181 <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a> Other2ThisRelative (<span class="keyword">const</span> <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& p) <span class="keyword">const</span>; <a name="l00182"></a>00182 <a name="l00190"></a>00190 <span class="keywordtype">void</span> Other2This (<span class="keyword">const</span> <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& p, <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& point, <a name="l00191"></a>00191 <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& result) <span class="keyword">const</span>; <a name="l00192"></a>00192 <a name="l00196"></a>00196 <a class="code" href="classcsSphere.html" title="This class represents a sphere.">csSphere</a> Other2This (<span class="keyword">const</span> <a class="code" href="classcsSphere.html" title="This class represents a sphere.">csSphere</a>& s) <span class="keyword">const</span>; <a name="l00197"></a>00197 <a name="l00202"></a>00202 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> <a class="code" href="cscolor_8h.html#c99c344a2408f1e1928b247db5d64365" title="Multiply two colors.">operator* </a>(<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& v, <a name="l00203"></a>00203 <span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t); <a name="l00204"></a>00204 <a name="l00209"></a>00209 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> <a class="code" href="cscolor_8h.html#c99c344a2408f1e1928b247db5d64365" title="Multiply two colors.">operator* </a>(<span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t, <a name="l00210"></a>00210 <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& v); <a name="l00211"></a>00211 <a name="l00216"></a>00216 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& operator*= (<a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& v, <a name="l00217"></a>00217 <span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t); <a name="l00218"></a>00218 <a name="l00223"></a>00223 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a> <a class="code" href="cscolor_8h.html#c99c344a2408f1e1928b247db5d64365" title="Multiply two colors.">operator* </a>(<span class="keyword">const</span> <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& p, <a name="l00224"></a>00224 <span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t); <a name="l00225"></a>00225 <a name="l00230"></a>00230 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a> <a class="code" href="cscolor_8h.html#c99c344a2408f1e1928b247db5d64365" title="Multiply two colors.">operator* </a>(<span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t, <a name="l00231"></a>00231 <span class="keyword">const</span> <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& p); <a name="l00232"></a>00232 <a name="l00237"></a>00237 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& operator*= (<a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& p, <a name="l00238"></a>00238 <span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t); <a name="l00239"></a>00239 <a name="l00244"></a>00244 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsSphere.html" title="This class represents a sphere.">csSphere</a> <a class="code" href="cscolor_8h.html#c99c344a2408f1e1928b247db5d64365" title="Multiply two colors.">operator* </a>(<span class="keyword">const</span> <a class="code" href="classcsSphere.html" title="This class represents a sphere.">csSphere</a>& p, <a name="l00245"></a>00245 <span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t); <a name="l00246"></a>00246 <a name="l00251"></a>00251 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsSphere.html" title="This class represents a sphere.">csSphere</a> <a class="code" href="cscolor_8h.html#c99c344a2408f1e1928b247db5d64365" title="Multiply two colors.">operator* </a>(<span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t, <a name="l00252"></a>00252 <span class="keyword">const</span> <a class="code" href="classcsSphere.html" title="This class represents a sphere.">csSphere</a>& p); <a name="l00253"></a>00253 <a name="l00258"></a>00258 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsSphere.html" title="This class represents a sphere.">csSphere</a>& operator*= (<a class="code" href="classcsSphere.html" title="This class represents a sphere.">csSphere</a>& p, <a name="l00259"></a>00259 <span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t); <a name="l00260"></a>00260 <a name="l00265"></a>00265 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a> <a class="code" href="cscolor_8h.html#c99c344a2408f1e1928b247db5d64365" title="Multiply two colors.">operator* </a>(<span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& m, <a name="l00266"></a>00266 <span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t); <a name="l00267"></a>00267 <a name="l00272"></a>00272 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a> <a class="code" href="cscolor_8h.html#c99c344a2408f1e1928b247db5d64365" title="Multiply two colors.">operator* </a>(<span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t, <a name="l00273"></a>00273 <span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& m); <a name="l00274"></a>00274 <a name="l00279"></a>00279 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& operator*= (<a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& m, <a name="l00280"></a>00280 <span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t); <a name="l00281"></a>00281 <a name="l00292"></a>00292 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a> <a class="code" href="cscolor_8h.html#c99c344a2408f1e1928b247db5d64365" title="Multiply two colors.">operator* </a>(<span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t1, <a name="l00293"></a>00293 <span class="keyword">const</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t2); <a name="l00294"></a>00294 <a name="l00300"></a>00300 <span class="keyword">static</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a> GetReflect (<span class="keyword">const</span> <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& pl); <a name="l00301"></a>00301 <a name="l00307"></a><a class="code" href="classcsTransform.html#d3c66a270ea801b216ad4fd096607a78">00307</a> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> GetFront ()<span class="keyword"> const</span> <a name="l00308"></a>00308 <span class="keyword"> </span>{ <a name="l00309"></a>00309 <span class="keywordflow">return</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> (m_o2t.m31, m_o2t.m32, m_o2t.m33); <a name="l00310"></a>00310 } <a name="l00311"></a>00311 <a name="l00317"></a><a class="code" href="classcsTransform.html#c4538999b1a4c4f22a5b6e609bad6dbd">00317</a> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> GetUp ()<span class="keyword"> const</span> <a name="l00318"></a>00318 <span class="keyword"> </span>{ <a name="l00319"></a>00319 <span class="keywordflow">return</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> (m_o2t.m21, m_o2t.m22, m_o2t.m23); <a name="l00320"></a>00320 } <a name="l00321"></a>00321 <a name="l00327"></a><a class="code" href="classcsTransform.html#4d6a7a7feb09461be10b3f003eea9a6d">00327</a> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> GetRight ()<span class="keyword"> const </span> <a name="l00328"></a>00328 <span class="keyword"> </span>{ <a name="l00329"></a>00329 <span class="keywordflow">return</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> (m_o2t.m11, m_o2t.m12, m_o2t.m13); <a name="l00330"></a>00330 } <a name="l00331"></a>00331 }; <a name="l00332"></a>00332 <a name="l00344"></a><a class="code" href="classcsReversibleTransform.html">00344</a> <span class="keyword">class </span>CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a> : <span class="keyword">public</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a> <a name="l00345"></a>00345 { <a name="l00346"></a>00346 <span class="keyword">protected</span>: <a name="l00348"></a><a class="code" href="classcsReversibleTransform.html#f500740bc965322a64e7bc714ce7196d">00348</a> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a> m_t2o; <a name="l00349"></a>00349 <a name="l00353"></a><a class="code" href="classcsReversibleTransform.html#07618e95ad9ccd82c3c07e4f6e2914cd">00353</a> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a> (<span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& o2t, <span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& t2o, <a name="l00354"></a>00354 <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& pos) : <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a> (o2t,pos), m_t2o (t2o) {} <a name="l00355"></a>00355 <a name="l00356"></a>00356 <span class="keyword">public</span>: <a name="l00360"></a><a class="code" href="classcsReversibleTransform.html#141d3b365df0f36b1fb1b704d2e8dc91">00360</a> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a> () : <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a> (), m_t2o () {} <a name="l00361"></a>00361 <a name="l00369"></a><a class="code" href="classcsReversibleTransform.html#f0d26f0b33e7692b5fc018b1e9a7f8c1">00369</a> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a> (<span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& o2t, <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& pos) : <a name="l00370"></a>00370 <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a> (o2t,pos) { m_t2o = m_o2t.GetInverse (); } <a name="l00371"></a>00371 <a name="l00375"></a><a class="code" href="classcsReversibleTransform.html#2430185a991ce4493378b2e657828499">00375</a> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a> (<span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t) : <a name="l00376"></a>00376 <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a> (t) { m_t2o = m_o2t.GetInverse (); } <a name="l00377"></a>00377 <a name="l00381"></a><a class="code" href="classcsReversibleTransform.html#262626bbd8bc304f09ab008e67ff7e54">00381</a> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a> (<span class="keyword">const</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t) : <a name="l00382"></a>00382 <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a> (t) { m_t2o = t.<a class="code" href="classcsReversibleTransform.html#f500740bc965322a64e7bc714ce7196d" title="Inverse transformation matrix (&#39;this&#39; to &#39;other&#39; space).">m_t2o</a>; } <a name="l00383"></a>00383 <a name="l00388"></a><a class="code" href="classcsReversibleTransform.html#9b24e3ccd1874dd74ed48c8ef504db36">00388</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& GetT2O ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_t2o; } <a name="l00389"></a>00389 <a name="l00394"></a><a class="code" href="classcsReversibleTransform.html#7d76fc227ef7e67297899060f70c3273">00394</a> <span class="keyword">inline</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> GetT2OTranslation ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> -m_o2t*v_o2t; } <a name="l00395"></a>00395 <a name="l00399"></a><a class="code" href="classcsReversibleTransform.html#4da7113ed78952f3c0fbec4534595492">00399</a> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a> GetInverse ()<span class="keyword"> const</span> <a name="l00400"></a>00400 <span class="keyword"> </span>{ <span class="keywordflow">return</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a> (m_t2o, m_o2t, -m_o2t*v_o2t); } <a name="l00401"></a>00401 <a name="l00406"></a><a class="code" href="classcsReversibleTransform.html#7adc3d305ab65cd54d4360d5fcf8c0f1">00406</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classcsTransform.html#8982b8df6c6260a98fbf9ac18ec0a681" title="Set &#39;other&#39; to &#39;this&#39; transformation matrix.">SetO2T</a> (<span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& m) <a name="l00407"></a>00407 { m_o2t = m; m_t2o = m_o2t.<a class="code" href="classcsMatrix3.html#c030fcde1006e30203943b62279478c7" title="Return the inverse of this matrix.">GetInverse</a> (); } <a name="l00408"></a>00408 <a name="l00414"></a><a class="code" href="classcsReversibleTransform.html#a0ae7c7834a8104fa463f9501734337c">00414</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetT2O (<span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& m) <a name="l00415"></a>00415 { m_t2o = m; m_o2t = m_t2o.<a class="code" href="classcsMatrix3.html#c030fcde1006e30203943b62279478c7" title="Return the inverse of this matrix.">GetInverse</a> (); } <a name="l00416"></a>00416 <a name="l00422"></a><a class="code" href="classcsReversibleTransform.html#0583af0d751ee86b38a29ff5f260facd">00422</a> <span class="keyword">inline</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> This2Other (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& v)<span class="keyword"> const</span> <a name="l00423"></a>00423 <span class="keyword"> </span>{ <span class="keywordflow">return</span> v_o2t + m_t2o * v; } <a name="l00424"></a>00424 <a name="l00430"></a><a class="code" href="classcsReversibleTransform.html#812d772c7db08d2ac2c17ce9b3c9f048">00430</a> <span class="keyword">inline</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> This2OtherRelative (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& v)<span class="keyword"> const</span> <a name="l00431"></a>00431 <span class="keyword"> </span>{ <span class="keywordflow">return</span> m_t2o * v; } <a name="l00432"></a>00432 <a name="l00439"></a>00439 <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a> This2Other (<span class="keyword">const</span> <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& p) <span class="keyword">const</span>; <a name="l00440"></a>00440 <a name="l00447"></a>00447 <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a> This2OtherRelative (<span class="keyword">const</span> <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& p) <span class="keyword">const</span>; <a name="l00448"></a>00448 <a name="l00457"></a>00457 <span class="keywordtype">void</span> This2Other (<span class="keyword">const</span> <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& p, <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& point, <a name="l00458"></a>00458 <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& result) <span class="keyword">const</span>; <a name="l00459"></a>00459 <a name="l00463"></a>00463 <a class="code" href="classcsSphere.html" title="This class represents a sphere.">csSphere</a> This2Other (<span class="keyword">const</span> <a class="code" href="classcsSphere.html" title="This class represents a sphere.">csSphere</a>& s) <span class="keyword">const</span>; <a name="l00464"></a>00464 <a name="l00470"></a>00470 <span class="keywordtype">void</span> RotateOther (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& v, <span class="keywordtype">float</span> angle); <a name="l00471"></a>00471 <a name="l00477"></a>00477 <span class="keywordtype">void</span> RotateThis (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& v, <span class="keywordtype">float</span> angle); <a name="l00478"></a>00478 <a name="l00486"></a><a class="code" href="classcsReversibleTransform.html#cc4167fabbf3b9195f9f24d6312e4bf5">00486</a> <span class="keywordtype">void</span> RotateOther (<span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& m) { SetT2O (m * m_t2o); } <a name="l00487"></a>00487 <a name="l00495"></a><a class="code" href="classcsReversibleTransform.html#b9dc14db5f80245d9ce2025df8e3c470">00495</a> <span class="keywordtype">void</span> RotateThis (<span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& m) { SetT2O (m_t2o * m); } <a name="l00496"></a>00496 <a name="l00505"></a>00505 <span class="keywordtype">void</span> LookAt (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& v, <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& up); <a name="l00506"></a>00506 <a name="l00511"></a>00511 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> <a class="code" href="cscolor_8h.html#a9b4d9b2f7603a763b65c580bf00eaad" title="Divide a color by a scalar.">operator/ </a>(<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& v, <a name="l00512"></a>00512 <span class="keyword">const</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t); <a name="l00513"></a>00513 <a name="l00518"></a>00518 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& operator/= (<a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& v, <a name="l00519"></a>00519 <span class="keyword">const</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t); <a name="l00520"></a>00520 <a name="l00525"></a>00525 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a> <a class="code" href="cscolor_8h.html#a9b4d9b2f7603a763b65c580bf00eaad" title="Divide a color by a scalar.">operator/ </a>(<span class="keyword">const</span> <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& p, <a name="l00526"></a>00526 <span class="keyword">const</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t); <a name="l00527"></a>00527 <a name="l00532"></a>00532 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& operator/= (<a class="code" href="classcsPlane3.html" title="A plane in 3D space.">csPlane3</a>& p, <a name="l00533"></a>00533 <span class="keyword">const</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t); <a name="l00534"></a>00534 <a name="l00539"></a>00539 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsSphere.html" title="This class represents a sphere.">csSphere</a> <a class="code" href="cscolor_8h.html#a9b4d9b2f7603a763b65c580bf00eaad" title="Divide a color by a scalar.">operator/ </a>(<span class="keyword">const</span> <a class="code" href="classcsSphere.html" title="This class represents a sphere.">csSphere</a>& p, <a name="l00540"></a>00540 <span class="keyword">const</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t); <a name="l00541"></a>00541 <a name="l00553"></a><a class="code" href="classcsReversibleTransform.html#30581bc00d5d9453319c51e68e05e5c5">00553</a> <span class="keyword">friend</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& <a class="code" href="classcsTransform.html#b04a64e3f3584c1aefac242cb7ec2e2d" title="Apply a transformation to a 3D vector.">operator*= </a>(<a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t1, <a name="l00554"></a>00554 <span class="keyword">const</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t2) <a name="l00555"></a>00555 { <a name="l00556"></a>00556 t1.<a class="code" href="classcsTransform.html#155b35f82b56b9b7bbc8a0b2921d3c17" title="Location of the origin for &#39;this&#39; space.">v_o2t</a> = t2.<a class="code" href="classcsReversibleTransform.html#f500740bc965322a64e7bc714ce7196d" title="Inverse transformation matrix (&#39;this&#39; to &#39;other&#39; space).">m_t2o</a>*t1.<a class="code" href="classcsTransform.html#155b35f82b56b9b7bbc8a0b2921d3c17" title="Location of the origin for &#39;this&#39; space.">v_o2t</a>; <a name="l00557"></a>00557 t1.<a class="code" href="classcsTransform.html#155b35f82b56b9b7bbc8a0b2921d3c17" title="Location of the origin for &#39;this&#39; space.">v_o2t</a> += t2.<a class="code" href="classcsTransform.html#155b35f82b56b9b7bbc8a0b2921d3c17" title="Location of the origin for &#39;this&#39; space.">v_o2t</a>; <a name="l00558"></a>00558 t1.<a class="code" href="classcsTransform.html#7f5f51248980a3ebf56744520e6a3825" title="Transformation matrix from &#39;other&#39; space to &#39;this&#39; space.">m_o2t</a> *= t2.<a class="code" href="classcsTransform.html#7f5f51248980a3ebf56744520e6a3825" title="Transformation matrix from &#39;other&#39; space to &#39;this&#39; space.">m_o2t</a>; <a name="l00559"></a>00559 t1.<a class="code" href="classcsReversibleTransform.html#f500740bc965322a64e7bc714ce7196d" title="Inverse transformation matrix (&#39;this&#39; to &#39;other&#39; space).">m_t2o</a> *= t1.<a class="code" href="classcsReversibleTransform.html#f500740bc965322a64e7bc714ce7196d" title="Inverse transformation matrix (&#39;this&#39; to &#39;other&#39; space).">m_t2o</a>; <a name="l00560"></a>00560 <span class="keywordflow">return</span> t1; <a name="l00561"></a>00561 } <a name="l00562"></a>00562 <a name="l00574"></a><a class="code" href="classcsReversibleTransform.html#328636bf6d926c21ae34e256c02ab759">00574</a> <span class="keyword">friend</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a> <a class="code" href="classcsTransform.html#fadac80549823159cf11614e6ab6f787" title="Apply a transformation to a 3D vector.">operator* </a>(<span class="keyword">const</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t1, <a name="l00575"></a>00575 <span class="keyword">const</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t2) <a name="l00576"></a>00576 { <a name="l00577"></a>00577 <span class="keywordflow">return</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a> (t1.<a class="code" href="classcsTransform.html#7f5f51248980a3ebf56744520e6a3825" title="Transformation matrix from &#39;other&#39; space to &#39;this&#39; space.">m_o2t</a>*t2.<a class="code" href="classcsTransform.html#7f5f51248980a3ebf56744520e6a3825" title="Transformation matrix from &#39;other&#39; space to &#39;this&#39; space.">m_o2t</a>, t2.<a class="code" href="classcsReversibleTransform.html#f500740bc965322a64e7bc714ce7196d" title="Inverse transformation matrix (&#39;this&#39; to &#39;other&#39; space).">m_t2o</a>*t1.<a class="code" href="classcsReversibleTransform.html#f500740bc965322a64e7bc714ce7196d" title="Inverse transformation matrix (&#39;this&#39; to &#39;other&#39; space).">m_t2o</a>, <a name="l00578"></a>00578 t2.<a class="code" href="classcsTransform.html#155b35f82b56b9b7bbc8a0b2921d3c17" title="Location of the origin for &#39;this&#39; space.">v_o2t</a> + t2.<a class="code" href="classcsReversibleTransform.html#f500740bc965322a64e7bc714ce7196d" title="Inverse transformation matrix (&#39;this&#39; to &#39;other&#39; space).">m_t2o</a>*t1.<a class="code" href="classcsTransform.html#155b35f82b56b9b7bbc8a0b2921d3c17" title="Location of the origin for &#39;this&#39; space.">v_o2t</a>); <a name="l00579"></a>00579 } <a name="l00580"></a>00580 <a name="l00581"></a>00581 <span class="preprocessor">#if !defined(SWIG) </span><span class="comment">/* Otherwise Swig 1.3.22 thinks this is multiply declared */</span> <a name="l00582"></a>00582 <a name="l00593"></a>00593 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a> <a class="code" href="classcsTransform.html#fadac80549823159cf11614e6ab6f787" title="Apply a transformation to a 3D vector.">operator* </a>(<span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t1, <a name="l00594"></a>00594 <span class="keyword">const</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t2); <a name="l00595"></a>00595 <span class="preprocessor">#endif</span> <a name="l00596"></a>00596 <span class="preprocessor"></span> <a name="l00608"></a>00608 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& operator/= ( <a name="l00609"></a>00609 <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t1, <span class="keyword">const</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t2); <a name="l00610"></a>00610 <a name="l00622"></a>00622 <span class="keyword">friend</span> CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a> <a class="code" href="cscolor_8h.html#a9b4d9b2f7603a763b65c580bf00eaad" title="Divide a color by a scalar.">operator/ </a>( <a name="l00623"></a>00623 <span class="keyword">const</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t1, <span class="keyword">const</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a>& t2); <a name="l00624"></a>00624 }; <a name="l00625"></a>00625 <a name="l00632"></a><a class="code" href="classcsOrthoTransform.html">00632</a> <span class="keyword">class </span><a class="code" href="classcsOrthoTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csOrthoTransform</a> : <span class="keyword">public</span> <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a> <a name="l00633"></a>00633 { <a name="l00634"></a>00634 <span class="keyword">public</span>: <a name="l00638"></a><a class="code" href="classcsOrthoTransform.html#21956bd7babb5be7864b4b0c8da3c3bc">00638</a> <a class="code" href="classcsOrthoTransform.html#21956bd7babb5be7864b4b0c8da3c3bc" title="Initialize with the identity transformation.">csOrthoTransform</a> () : <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a> () {} <a name="l00639"></a>00639 <a name="l00643"></a><a class="code" href="classcsOrthoTransform.html#dd19421188e21e7e33303d70a5658edb">00643</a> <a class="code" href="classcsOrthoTransform.html#21956bd7babb5be7864b4b0c8da3c3bc" title="Initialize with the identity transformation.">csOrthoTransform</a> (<span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& o2t, <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>& pos) : <a name="l00644"></a>00644 <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a> (o2t, o2t.GetTranspose (), pos) { } <a name="l00645"></a>00645 <a name="l00649"></a><a class="code" href="classcsOrthoTransform.html#6c4d9be981e5487d02baa4015fd2d748">00649</a> <a class="code" href="classcsOrthoTransform.html#21956bd7babb5be7864b4b0c8da3c3bc" title="Initialize with the identity transformation.">csOrthoTransform</a> (<span class="keyword">const</span> <a class="code" href="classcsTransform.html" title="A class which defines a transformation from one coordinate system to another.">csTransform</a>& t) : <a name="l00650"></a>00650 <a class="code" href="classcsReversibleTransform.html" title="A class which defines a reversible transformation from one coordinate system to another...">csReversibleTransform</a> (t.<a class="code" href="classcsTransform.html#6b9dc087bd425a9bc8fe1c35a127e7b3" title="Get &#39;other&#39; to &#39;this&#39; transformation matrix.">GetO2T</a> (), t.<a class="code" href="classcsTransform.html#6b9dc087bd425a9bc8fe1c35a127e7b3" title="Get &#39;other&#39; to &#39;this&#39; transformation matrix.">GetO2T</a> ().GetTranspose (), <a name="l00651"></a>00651 t.<a class="code" href="classcsTransform.html#ddaca558caeb0026f10074a43192a6b3" title="Get &#39;other&#39; to &#39;this&#39; translation.">GetO2TTranslation</a> ()) <a name="l00652"></a>00652 { } <a name="l00653"></a>00653 <a name="l00658"></a><a class="code" href="classcsOrthoTransform.html#2c075ede84fdeddac05480eb5a39b85d">00658</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classcsOrthoTransform.html#2c075ede84fdeddac05480eb5a39b85d" title="Set &#39;other&#39; to &#39;this&#39; transformation matrix.">SetO2T</a> (<span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& m) <a name="l00659"></a>00659 { <a class="code" href="classcsTransform.html#7f5f51248980a3ebf56744520e6a3825" title="Transformation matrix from &#39;other&#39; space to &#39;this&#39; space.">m_o2t</a> = m; <a class="code" href="classcsReversibleTransform.html#f500740bc965322a64e7bc714ce7196d" title="Inverse transformation matrix (&#39;this&#39; to &#39;other&#39; space).">m_t2o</a> = <a class="code" href="classcsTransform.html#7f5f51248980a3ebf56744520e6a3825" title="Transformation matrix from &#39;other&#39; space to &#39;this&#39; space.">m_o2t</a>.<a class="code" href="classcsMatrix3.html#c7b62f445a1a6f388c16874d954d595f" title="Return the transpose of this matrix.">GetTranspose</a> (); } <a name="l00660"></a>00660 <a name="l00666"></a><a class="code" href="classcsOrthoTransform.html#851a3ee657be77e99ba8b926f837eeed">00666</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classcsOrthoTransform.html#851a3ee657be77e99ba8b926f837eeed" title="Set &#39;this&#39; to &#39;other&#39; transformation matrix.">SetT2O</a> (<span class="keyword">const</span> <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>& m) <a name="l00667"></a>00667 { <a class="code" href="classcsReversibleTransform.html#f500740bc965322a64e7bc714ce7196d" title="Inverse transformation matrix (&#39;this&#39; to &#39;other&#39; space).">m_t2o</a> = m; <a class="code" href="classcsTransform.html#7f5f51248980a3ebf56744520e6a3825" title="Transformation matrix from &#39;other&#39; space to &#39;this&#39; space.">m_o2t</a> = <a class="code" href="classcsReversibleTransform.html#f500740bc965322a64e7bc714ce7196d" title="Inverse transformation matrix (&#39;this&#39; to &#39;other&#39; space).">m_t2o</a>.<a class="code" href="classcsMatrix3.html#c7b62f445a1a6f388c16874d954d595f" title="Return the transpose of this matrix.">GetTranspose</a> (); } <a name="l00668"></a>00668 }; <a name="l00669"></a>00669 <a name="l00672"></a>00672 <span class="preprocessor">#endif // __CS_TRANSFORM_H__</span> <a name="l00673"></a>00673 <span class="preprocessor"></span> </pre></div><hr size="1"><address><small>Generated for Crystal Space 1.2.1 by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 </small></address> </div></body> </html>