function plot_triangle_example(Q, P, S)
%PLOT_TRIANGLE_EXAMPLE plot triangle example to illustrate effects of the
%unstated assumption by Derenick and Spletzer.
m = 3;

px = P(:, 1);
py = P(:, 2);
qx = Q(:,1);
qy = Q(:,2);
sx = S(:, 1);
sy = S(:, 2);

plot(qx, qy, 'b*', 'MarkerSize', 10);
plot(px, py, 'ro', 'MarkerSize', 10);
plot(sx, sy, 'kx');
legend('Final Locations', 'Initial Locations', 'Shape');
title('Incorrect results');

for k = 1:m
    plot([px(k) qx(k)], [py(k) qy(k)], 'r-');
end
 
axis ([-0.25 1.25 -0.25 1.25]);

end

