Skip to content
Snippets Groups Projects
Commit f1492028 authored by Andrew Heather's avatar Andrew Heather
Browse files

BUG: quaternion - corrected construction from rotation tensor. Fixes #1348

parent 7812817a
Branches
Tags
No related merge requests found
......@@ -259,7 +259,7 @@ inline Foam::quaternion::quaternion
- rotationTensor.zz()
);
w_ = (rotationTensor.xz() - rotationTensor.xz())/s;
w_ = (rotationTensor.xz() - rotationTensor.zx())/s;
v_[0] = (rotationTensor.xy() + rotationTensor.yx())/s;
v_[1] = 0.25*s;
v_[2] = (rotationTensor.yz() + rotationTensor.zy())/s;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment