fix rotation matrices *facepalm no 2*

This commit is contained in:
Michael Kirsch 2019-05-25 20:44:01 +02:00 committed by Joseph Lenox
parent 810bff9d00
commit b46383a089

View File

@ -267,19 +267,19 @@ TransformationMatrix TransformationMatrix::mat_rotation(double angle_rad, const
case X: case X:
mat = TransformationMatrix( mat = TransformationMatrix(
1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0,
0.0, c, s, 0.0, 0.0, c, -s, 0.0,
0.0, -s, c, 0.0); 0.0, s, c, 0.0);
break; break;
case Y: case Y:
mat = TransformationMatrix( mat = TransformationMatrix(
c, 0.0, -s, 0.0, c, 0.0, s, 0.0,
0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0,
s, 0.0, c, 0.0); -s, 0.0, c, 0.0);
break; break;
case Z: case Z:
mat = TransformationMatrix( mat = TransformationMatrix(
c, s, 0.0, 0.0, c, -s, 0.0, 0.0,
-s, c, 0.0, 0.0, s, c, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0); 0.0, 0.0, 1.0, 0.0);
break; break;
default: default: