From 6571d36030415d8ef8bb1be64a9d7e03a27dce5d Mon Sep 17 00:00:00 2001 From: Jonathan Youett <youett@mi.fu-berlin.de> Date: Mon, 24 Oct 2011 08:29:09 +0000 Subject: [PATCH] cast rotation to a quaternion before multiplying with another quaternion [[Imported from SVN: r8003]] --- dune/gfe/rotation.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dune/gfe/rotation.hh b/dune/gfe/rotation.hh index 3c002e46..f60d0c04 100644 --- a/dune/gfe/rotation.hh +++ b/dune/gfe/rotation.hh @@ -281,13 +281,14 @@ public: vAtIdentity[2] = 0.5*v.axial()[2]; // multiply with base point to get real embedded tangent vector - Quaternion<T> vQuat = p.mult(vAtIdentity); + Quaternion<T> vQuat = ((Quaternion<T>) p).mult(vAtIdentity); //get basis of the tangent space Dune::FieldMatrix<T,3,4> basis = p.orthonormalFrame(); // transform coordinates TangentVector tang; + tang = 0; basis.mv(vQuat,tang); return tang; -- GitLab