1
Bugs / Matrix.rotateX rotates clockwise
« on: June 30, 2013, 10:10:22 pm »
Hello,
Thanks for your work. I think I might have encountered a misleading method description. Indeed the doc says rotateX creates a counter-clockwise rotation for positive angles but it appears to create a clockwise rotation matrix.
How you can test:
You get the matrix:
1 0 0 0
0 0 -1 0
0 1 0 0
0 0 0 1
Which sends (0 1 0 0) to (0 0 -1 0). (I'm assuming row vectors)
Which corresponds to clockwise
Thanks for your work. I think I might have encountered a misleading method description. Indeed the doc says rotateX creates a counter-clockwise rotation for positive angles but it appears to create a clockwise rotation matrix.
How you can test:
Code: [Select]
Matrix mat = new Matrix();
mat.rotateX((float)Math.PI/2);
Logger.Log(mat.ToString());
You get the matrix:
1 0 0 0
0 0 -1 0
0 1 0 0
0 0 0 1
Which sends (0 1 0 0) to (0 0 -1 0). (I'm assuming row vectors)
Which corresponds to clockwise