* tests/fun/x2x/composed.cc: Fix the initialization of the axis
vector.
---
milena/ChangeLog | 7 +++++++
milena/tests/fun/x2x/composed.cc | 6 ++----
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 64b4f97..c45e994 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,12 @@
2010-10-21 Roland Levillain <roland(a)lrde.epita.fr>
+ Fix test fun/x2x/composed.
+
+ * tests/fun/x2x/composed.cc: Fix the initialization of the axis
+ vector.
+
+2010-10-21 Roland Levillain <roland(a)lrde.epita.fr>
+
Fix 3D rotations.
* mln/fun/x2x/rotation.hh
diff --git a/milena/tests/fun/x2x/composed.cc b/milena/tests/fun/x2x/composed.cc
index 3367097..f07b302 100644
--- a/milena/tests/fun/x2x/composed.cc
+++ b/milena/tests/fun/x2x/composed.cc
@@ -24,13 +24,13 @@
// executable file might be covered by the GNU General Public License.
#include <iostream>
+
#include <mln/fun/x2x/translation.hh>
#include <mln/fun/x2x/rotation.hh>
#include <mln/fun/x2x/composed.hh>
#include <mln/fun/i2v/all_to.hh>
-
int main()
{
using namespace mln;
@@ -43,9 +43,7 @@ int main()
algebra::vec<3,float> vec1 = make::vec(a, b, c);
fun::x2x::translation<3,float> tr(all_to(1.6));
algebra::vec<3,float> axis;
- axis[0] = 0;
- axis[1] = 1;
- axis[0] = 0;
+ axis.set(0, 1, 0);
fun::x2x::rotation<3,float> rot(0.3, axis);
std::cout << "vec : " << vec1 << std::endl;
--
1.5.6.5