Skip to content

Commit

Permalink
better circles :)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfHielscher committed Nov 7, 2024
1 parent 0a594c5 commit 451e46a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions geometry/@vector3d/circle.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,21 @@
omega = 90*degree;
end

h = [];
if isscalar(normals), normals = repmat(normals,size(omega)); end
if isscalar(omega), omega = repmat(omega,size(normals)); end

h = gobjects;

for i = 1:length(normals)

n = normals.subSet(i);

% generate circles
c = axis2quat(n,(0:1:360)*degree) * axis2quat(orth(n),omega)*n;
c = axis2quat(n,(0:1:360)*degree) * axis2quat(orth(n),omega(i))*n;

% plot circles
h = [h,line(c,varargin{:},'hold','doNotDraw')]; %#ok<AGROW>

end

if nargout == 0, clear h;end
if nargout == 0, clear h; end

0 comments on commit 451e46a

Please sign in to comment.