#6747 Tensor computations : Fix issues when creating the rotation matrix

This commit is contained in:
Magne Sjaastad 2020-10-08 11:14:56 +02:00
parent 74044ab5c7
commit 2ee4f48a88

View File

@ -66,11 +66,11 @@ cvf::Mat3f GeometryTools::computePlaneHorizontalRotationMx( const cvf::Vec3f& in
if ( Ey[2] < 0.0f ) // Semi vertical is down
{
return cvf::Mat3f( -Ex[0], -Ey[0], Ez[0], -Ex[1], -Ey[1], Ez[1], -Ex[2], -Ey[2], Ez[2] );
return cvf::Mat3f( -Ex[0], -Ex[1], -Ex[2], -Ey[0], -Ey[1], -Ey[2], Ez[0], Ez[1], Ez[2] );
}
else
{
return cvf::Mat3f( Ex[0], Ey[0], Ez[0], Ex[1], Ey[1], Ez[1], Ex[2], Ey[2], Ez[2] );
return cvf::Mat3f( Ex[0], Ex[1], Ex[2], Ey[0], Ey[1], Ey[2], Ez[0], Ez[1], Ez[2] );
}
}