File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 170
170
uq.s = 1 ;
171
171
elseif isa(s , ' Quaternion' )
172
172
% passed a quaternion of some kind, optionally normalize
173
- if ~isa(s , ' UnitQuaternion' );
173
+ if ~isa(s , ' UnitQuaternion' )
174
174
s = s .unit();
175
175
end
176
176
uq.s = s .s ;
286
286
if cosTheta < 0
287
287
q1 = - q1 ;
288
288
cosTheta = - cosTheta ;
289
- end ;
289
+ end
290
290
end
291
291
292
292
theta = acos(cosTheta );
490
490
% get the superclass to do this for us
491
491
qp = mtimes@Quaternion(q1 , q2 );
492
492
493
- elseif isa(q1 , ' Quaternion' ) && (isnumeric(q2 ) | isa(q2 , ' sym' ))
493
+ elseif isa(q1 , ' Quaternion' ) && (isnumeric(q2 ) || isa(q2 , ' sym' ))
494
494
495
495
% QVMUL Multiply vector by UnitQuaternion
496
496
%
@@ -699,7 +699,7 @@ function animate(Q, varargin)
699
699
700
700
if length(q ) > 1
701
701
s = [];
702
- for qq = q ;
702
+ for qq = q
703
703
if isempty(s )
704
704
s = char(qq );
705
705
else
@@ -984,14 +984,14 @@ function animate(Q, varargin)
984
984
error(' SMTB:UnitQuaternion:badarg' , ' angdist: incorrect operand' );
985
985
end
986
986
if nargin == 2
987
- method = 1
987
+ method = 1 ;
988
988
end
989
989
990
990
switch method
991
991
case 1
992
- d = 1 - abs(q1 .inner(q2 ))
992
+ d = 1 - abs(q1 .inner(q2 ));
993
993
case 2
994
- d = acos(abs(q1 .inner(q2 )))
994
+ d = acos(abs(q1 .inner(q2 )));
995
995
end
996
996
end
997
997
You can’t perform that action at this time.
0 commit comments