Commit 0c7260e9 authored by Philipp Schäfer's avatar Philipp Schäfer
Browse files

fixed a bug in ita_quat2vu which occured when only transforming a single quaternion

parent b2b056ce
......@@ -42,8 +42,8 @@ assert(isa(q,'quaternion'),'Input must be a quaternion() object.');
%% Normalize and transform
qn = q.normalize;
view = qn.RotateVector([0 0 -1]);
up = qn.RotateVector([0 1 0]);
view = qn.RotateVector([0; 0; -1]);
up = qn.RotateVector([0; 1; 0]);
view = permute(view,[2,1,3]);
up = permute(up,[2,1,3]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment