/[ff3d]/ff3d/geometry/Translation.cpp
ViewVC logotype

Diff of /ff3d/geometry/Translation.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by delpinux, Mon Feb 17 16:32:50 2003 UTC revision 1.2 by delpinux, Sun May 4 18:09:01 2003 UTC
# Line 23  Line 23 
23  #include <sstream>  #include <sstream>
24    
25  //! Applies the Translation to the vector \a v.  //! Applies the Translation to the vector \a v.
26  TinyVector<3>& Translation::operator()(TinyVector<3>& v)  TinyVector<3>& Translation::operator()(TinyVector<3>& v) const
27  {  {
28    for (int i=0; i<3; i++)    for (int i=0; i<3; i++)
29      v[i] += __vect[i];      v[i] += __vect[i];
# Line 32  TinyVector<3>& Translation::operator()(T Line 32  TinyVector<3>& Translation::operator()(T
32  }  }
33    
34  //! Applies the inverse Translation to the vector \a v.  //! Applies the inverse Translation to the vector \a v.
35  TinyVector<3>& Translation::inverse(TinyVector<3>& v)  TinyVector<3>& Translation::inverse(TinyVector<3>& v) const
36  {  {
37    for (int i=0; i<3; i++)    for (int i=0; i<3; i++)
38      v[i] -= __vect[i];      v[i] -= __vect[i];

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26