Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
b7788f16
Commit
b7788f16
authored
May 14, 2018
by
fpa
Browse files
property nPoints is now correct when creating an empty itaOrientation object
parent
f36951b8
Changes
1
Show whitespace changes
Inline
Side-by-side
applications/Hardware/Tracking/Optitrack/@itaOrientation/itaOrientation.m
View file @
b7788f16
...
@@ -40,7 +40,7 @@ classdef itaOrientation
...
@@ -40,7 +40,7 @@ classdef itaOrientation
% ita_vu2quat, ita_vu2rpy, itaOptitrack
% ita_vu2quat, ita_vu2rpy, itaOptitrack
%
%
% Author: Florian Pausch, fpa@akustik.rwth-aachen.de
% Author: Florian Pausch, fpa@akustik.rwth-aachen.de
% Version: 2018-05-
0
4
% Version: 2018-05-
1
4
%
%
% <ITA-Toolbox>
% <ITA-Toolbox>
% This file is part of the ITA-Toolbox. Some rights reserved.
% This file is part of the ITA-Toolbox. Some rights reserved.
...
@@ -196,8 +196,12 @@ classdef itaOrientation
...
@@ -196,8 +196,12 @@ classdef itaOrientation
function
value
=
get
.
nPoints
(
this
)
function
value
=
get
.
nPoints
(
this
)
% get number of stored orientations [double]
% get number of stored orientations [double]
if
size
(
this
.
mOrient
,
1
)
==
0
value
=
0
;
else
value
=
size
(
this
.
mOrient
,
2
);
value
=
size
(
this
.
mOrient
,
2
);
end
end
end
%% set methods
%% set methods
...
@@ -360,8 +364,6 @@ classdef itaOrientation
...
@@ -360,8 +364,6 @@ classdef itaOrientation
end
end
function
this
=
n
(
this
,
index
)
function
this
=
n
(
this
,
index
)
% Replace by content of chosen index n
% error check: do nothing, if out of bound or nothing given
% error check: do nothing, if out of bound or nothing given
if
nargin
<
2
||
isempty
(
this
.
mOrient
),
return
;
end
;
if
nargin
<
2
||
isempty
(
this
.
mOrient
),
return
;
end
;
this
.
mOrient
=
this
.
mOrient
(
1
,
index
);
this
.
mOrient
=
this
.
mOrient
(
1
,
index
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment