% ShowInAndOut
% Checks the instance Methods OutCircle and InCircle
clc
clear
close all
figure
plot([-5 5],[0 0],':k',[0 0],[-5 5],':k')
axis equal square
title('Click in the Vertices of the Triangle','fontsize',18)
hold on
[x,y] = ginput(3);
T = Triangle(Point(x(1),y(1)),Point(x(2),y(2)),Point(x(3),y(3)));
T.Show('k')
C_Out = T.OutCircle();
C_Out.Show('g')
C_In = T.InCircle();
C_In.Show('r')
axis equal
shg