Commit b369b21a authored by Roland Levillain's avatar Roland Levillain
Browse files

Fix test fun/x2x/composed.

	* tests/fun/x2x/composed.cc: Fix the initialization of the axis
	vector.
parent 1085d061
2010-10-21 Roland Levillain <roland@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@lrde.epita.fr>
 
Fix 3D rotations.
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment