diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-25 14:53:29 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-25 14:53:29 +0200 |
commit | 3235281156cfd733759a982bf84701d40c1a33b5 (patch) | |
tree | 35dc4929002013be46bef3765325648a1a9c8428 /ftnoir_posewidget/glwidget.cpp | |
parent | 3c86c541c57e5a1e1e5b622128710b11dfc1a470 (diff) |
fix axis order
Diffstat (limited to 'ftnoir_posewidget/glwidget.cpp')
-rw-r--r-- | ftnoir_posewidget/glwidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ftnoir_posewidget/glwidget.cpp b/ftnoir_posewidget/glwidget.cpp index 2cd94f62..70114b0e 100644 --- a/ftnoir_posewidget/glwidget.cpp +++ b/ftnoir_posewidget/glwidget.cpp @@ -36,10 +36,10 @@ void GLWidget::rotateBy(double xAngle, double yAngle, double zAngle) double ch = cos(xAngle / 57.295781); double sh = sin(xAngle / 57.295781); - double ca = cos(yAngle / 57.295781); - double sa = sin(yAngle / 57.295781); - double cb = cos(zAngle / 57.295781); - double sb = sin(zAngle / 57.295781); + double ca = cos(zAngle / 57.295781); + double sa = sin(zAngle / 57.295781); + double cb = cos(yAngle / 57.295781); + double sb = sin(yAngle / 57.295781); matrix[0 * 3 + 0] = ch * ca; matrix[0 * 3 + 1]= sh*sb - ch*sa*cb; |