summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_posewidget
diff options
context:
space:
mode:
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);