From 3235281156cfd733759a982bf84701d40c1a33b5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 25 Oct 2014 14:53:29 +0200 Subject: fix axis order --- ftnoir_posewidget/glwidget.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ftnoir_posewidget') 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; -- cgit v1.2.3