mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: quaternion - corrected construction from rotation tensor. Fixes #1348
This commit is contained in:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user