mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6747 Tensor computations : Fix issues when creating the rotation matrix
This commit is contained in:
parent
74044ab5c7
commit
2ee4f48a88
@ -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] );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user