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

This commit is contained in:
Andrew Heather
2019-07-24 09:37:38 +01:00
parent c07ab24556
commit b0a1a3fd0b

View File

@ -259,7 +259,7 @@ inline Foam::quaternion::quaternion
- rotationTensor.zz() - rotationTensor.zz()
); );
w_ = (rotationTensor.xz() - rotationTensor.xz())/s; w_ = (rotationTensor.xz() - rotationTensor.zx())/s;
v_[0] = (rotationTensor.xy() + rotationTensor.yx())/s; v_[0] = (rotationTensor.xy() + rotationTensor.yx())/s;
v_[1] = 0.25*s; v_[1] = 0.25*s;
v_[2] = (rotationTensor.yz() + rotationTensor.zy())/s; v_[2] = (rotationTensor.yz() + rotationTensor.zy())/s;