summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_posewidget
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-26 07:02:52 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-10-26 07:02:52 +0100
commit37db3853d8b03c1e0de3a667ab591a59434f118d (patch)
treedb3c13377844fd09f986bf9b739db88011141aec /ftnoir_posewidget
parenta7012fe2c2a532843f14016ddad243b154b790fa (diff)
pose widget only axis were swapped
Diffstat (limited to 'ftnoir_posewidget')
-rw-r--r--ftnoir_posewidget/glwidget.cpp8
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);