%Serie 2, Aufgabe 4c)
a=[1 2]'
b=[3 4]'
c=[2 5]'
phi=pi/3

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Plot a triangle given by the 2D points a, b and c.
% Then, given phi, create the matrix R and apply it to 
% a, b, c to obtain a_new, b_new, c_new and plot the
% associated triangle.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Plot first Triangle
plot_dreieck(a,b,c,'A','B','C')
hold on

%construct matrix
R = ... %%% fill in here

%Compute new points
a_new = ... %%% fill in here
b_new = ... %%% fill in here
c_new = ... %%% fill in here

% Plot second triangle
plot_dreieck(a_new,b_new,c_new,'A''','B''','C''')
hold off

% Store figure
print('dreiecke.eps','-depsc')