P=[1 2 2; 1 1 2];
zobraz_plochy(P)
hold on
axis([-1, 6, -1, 6])  
axis equal
line([0 0],[-0.2 3.5])
line([-0.2 3.5],[0 0])

%stejnolehlost
P_transf=stejnolehlost(P,2);
zobraz_plochy(P_transf)
hold on
axis([-1, 6, -1, 6])  
axis equal
line([0 0],[-0.2 5.5])
line([-0.2 5.5],[0 0])

%posunuti
P_transf = posunuti(P,[1;1]);
zobraz_plochy(P_transf)
hold on
axis([-1, 6, -1, 6])  
axis equal
line([0 0],[-0.2 5.5])
line([-0.2 5.5],[0 0])

%rotace
P_transf = rotace(P,pi/4);
zobraz_plochy(P_transf)
hold on
axis([-1, 6, -1, 6])  
axis equal
line([0 0],[-0.2 5.5])
line([-0.2 5.5],[0 0])