% ShowPointSet
% Manipulating PointSet Objects
close all
figure
plot([-5 5],[0 0],':k',[0 0],[-5 5],':k') 
axis square
hold on

% Create a small PointSet and display in black...
S = PointSet(3,[-4 2 3],[-3 -2 4]);
S.Show('k')

% Create a Point Object to house the centroid of the PointSet referenced
% by S and color it red...
P = S.Centroid();
P.Show('r')

% Add the centroid to the PointSet referenced by S and display inmagenta
S.AddPoint(P)
S.Show('m')

% Create and display a random PointSet
T = PointSet(10);
T.Show('c')