function [positions, arglist] = parseOrientationPositions(orientations,arglist)
%parsePositions parse argument list for position information
%   This file is for internal use only and may be removed in a future
%   version of MATLAB

%   Copyright 2017 The MathWorks, Inc.


if ~isempty(arglist)
    validateattributes(arglist{1},{'numeric'},{'real','ncols',3},'plotOrientation','positions');
    positions = double(arglist{1});
    if size(orientations,3) ~= size(positions,1)
        error(message('shared_radarfusion:theaterPlot:PositionOrientationMismatch'))
    end
    arglist = arglist(2:end);
else
    positions = zeros(size(orientations,3),3);
end