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:
mat = TransformationMatrix(
1.0, 0.0, 0.0, 0.0,
0.0, c, s, 0.0,
0.0, -s, c, 0.0);
0.0, c, -s, 0.0,
0.0, s, c, 0.0);
break;
case Y:
mat = TransformationMatrix(
c, 0.0, -s, 0.0,
c, 0.0, s, 0.0,
0.0, 1.0, 0.0, 0.0,
s, 0.0, c, 0.0);
-s, 0.0, c, 0.0);
break;
case Z:
mat = TransformationMatrix(
c, s, 0.0, 0.0,
-s, c, 0.0, 0.0,
c, -s, 0.0, 0.0,
s, c, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0);
break;
default: