From 6e0de0884f8bdf352f91a5c5a55fb383152ed731 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Wed, 16 Nov 2011 13:55:22 +0000 Subject: [PATCH] make rotationtest compile again [[Imported from SVN: r8192]] --- test/rotationtest.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/rotationtest.cc b/test/rotationtest.cc index 74a0581b..e2e4d1ea 100644 --- a/test/rotationtest.cc +++ b/test/rotationtest.cc @@ -4,12 +4,12 @@ #include <dune/common/fmatrix.hh> -#include <dune/gfe/quaternion.hh> +#include <dune/gfe/rotation.hh> #include <dune/gfe/svd.hh> using namespace Dune; -void testUnitQuaternion(Quaternion<double> q) +void testUnitQuaternion(Rotation<double,3> q) { // Make sure it really is a unit quaternion q.normalize(); @@ -31,7 +31,7 @@ void testUnitQuaternion(Quaternion<double> q) // Turn the matrix back into a quaternion, and check whether it is the same one // Since the quaternions form a double covering of SO(3), we may either get q back // or -q. We have to check both. - Quaternion<double> newQ; + Rotation<double,3> newQ; newQ.set(matrix); Quaternion<double> diff = newQ; @@ -61,7 +61,7 @@ void testUnitQuaternion(Quaternion<double> q) for (int l=-2; l<2; l++) if (i!=0 || j!=0 || k!=0 || l!=0) { - Quaternion<double> q2(i,j,k,l); + Rotation<double,3> q2(Quaternion<double>(i,j,k,l)); q2.normalize(); // set up corresponding rotation matrix -- GitLab