Skip to content
Snippets Groups Projects
Commit 8157651e authored by Timo Birr's avatar Timo Birr :rage:
Browse files

Fixed switching of roll and yaw when changing values in Matrix4fWidget

parent 90c8ddc9
No related branches found
No related tags found
1 merge request!63Matrix4 widget patch
Git can only track files and not directory.
Therefore this file is added to all empty directories
which need to be available after a Git clone.
......@@ -93,8 +93,8 @@ namespace armarx::RemoteGui
else
{
float cb = 1.0f / std::cos(ry);
rx = std::atan2(m(1, 0) * cb, m(0, 0) * cb);
rz = std::atan2(m(2, 1) * cb, m(2, 2) * cb);
rx = std::atan2(m(2, 1) * cb, m(2, 2) * cb);
rz = std::atan2(m(1, 0) * cb, m(0, 0) * cb);
}
static_cast<QDoubleSpinBox*>(widget->layout()->itemAt(0)->widget())->setValue(m(0, 3));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment