diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-26 07:02:52 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-26 07:02:52 +0100 |
commit | 37db3853d8b03c1e0de3a667ab591a59434f118d (patch) | |
tree | db3c13377844fd09f986bf9b739db88011141aec /ftnoir_posewidget | |
parent | a7012fe2c2a532843f14016ddad243b154b790fa (diff) |
pose widget only axis were swapped
Diffstat (limited to 'ftnoir_posewidget')
-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 9495376f..bfb9190d 100644 --- a/ftnoir_posewidget/glwidget.cpp +++ b/ftnoir_posewidget/glwidget.cpp @@ -34,10 +34,10 @@ void GLWidget::paintEvent ( QPaintEvent * event ) { void GLWidget::rotateBy(double xAngle, double yAngle, double zAngle) { - double c1 = cos(xAngle / 57.295781); - double s1 = sin(xAngle / 57.295781); - double c2 = cos(zAngle / 57.295781); - double s2 = sin(zAngle / 57.295781); + double c1 = cos(zAngle / 57.295781); + double s1 = sin(zAngle / 57.295781); + double c2 = cos(xAngle / 57.295781); + double s2 = sin(xAngle / 57.295781); double c3 = cos(yAngle / 57.295781); double s3 = sin(yAngle / 57.295781); |