https://svn.lrde.epita.fr/svn/oln/trunk/milena
Index: ChangeLog
from Ugo Jardonnet <ugo.jardonnet(a)lrde.epita.fr>
Fix rotation.
* mln/fun/x2x/rotation.hh: Fix 3d rotation Matrix.
rotation.hh | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Index: mln/fun/x2x/rotation.hh
--- mln/fun/x2x/rotation.hh (revision 3133)
+++ mln/fun/x2x/rotation.hh (working copy)
@@ -86,13 +86,13 @@
m_(2,0) = (u*w * (1 - cos_a) - v * std::sqrt(uvw2) * sin_a) / uvw2;
m_(2,1) = (v*w * (1 - cos_a) + u * std::sqrt(uvw2) * sin_a) / uvw2;
- m_(2,1) = (u2 + (u2 + v2) * cos_a) / uvw2;
+ m_(2,2) = (u2 + (u2 + v2) * cos_a) / uvw2;
m_(2,3) = 0;
- m_(2,0) = 0;
- m_(2,1) = 0;
- m_(2,1) = 0;
- m_(2,3) = 1;
+ m_(3,0) = 0;
+ m_(3,1) = 0;
+ m_(3,2) = 0;
+ m_(3,3) = 1;
return m_;
}