function [ ] = drawFan( n )
%DRAWFAN Draw a set of n line segments fanning out from the origin to
% points on a unit circle spaced pi/16 radians apart. The first segment
% lies along the positive x axis and subsequent segments are
% counterclockwise from the first.

ANGLE = pi / 16;

for a = 0 : ANGLE : ANGLE * (n-1)
    plot( [ 0, cos(a) ], [ 0, sin(a) ], 'LineWidth', 2 );
    hold on;
end

axis( [ -1.1, 1.1, -0.1, 1.1 ] );
axis equal;

end
