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

% Create a point object and display in red...
P = Point(2,3);
P.Show('r')
% Q references the same Point object as P...
Q = P;
% Obtain a new point object by rotating 60 degrees the point 
% referenced by P. Display the new point in green...
R = P.Rotate(60);
R.Show('g')
% Rotate the point referenced by P by -60 degrees. Display in blue...
P.Rotate(-60)
P.Show('b')
% Connect the points referenced by R and Q..
plot([R.x Q.x],[R.y Q.y],'m')
