Skip to content
Snippets Groups Projects
Commit 6571d360 authored by Youett, Jonathan's avatar Youett, Jonathan Committed by akbib@FU-BERLIN.DE
Browse files

cast rotation to a quaternion before multiplying with another quaternion

[[Imported from SVN: r8003]]
parent e7a35e40
No related branches found
No related tags found
No related merge requests found
...@@ -281,13 +281,14 @@ public: ...@@ -281,13 +281,14 @@ public:
vAtIdentity[2] = 0.5*v.axial()[2]; vAtIdentity[2] = 0.5*v.axial()[2];
// multiply with base point to get real embedded tangent vector // 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 //get basis of the tangent space
Dune::FieldMatrix<T,3,4> basis = p.orthonormalFrame(); Dune::FieldMatrix<T,3,4> basis = p.orthonormalFrame();
// transform coordinates // transform coordinates
TangentVector tang; TangentVector tang;
tang = 0;
basis.mv(vQuat,tang); basis.mv(vQuat,tang);
return tang; return tang;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment