Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = [0 1 1 0;0 1 -1 0];
- plot(t(1,:),t(2,:),"r");
- axis([-5 5 -5 5],"square");
- text(0,0,'A');
- text(1,1,'B');
- text(1,-1,'C');
- grid();
- hold on;
- t1 = [-1 0 0 -1; -2 -1 -3 -2];
- plot(t1(1,:),t1(2,:),"b");
- alfa = 2*pi/3;
- T = [cos(alfa) -sin(alfa); sin(alfa) cos(alfa)];
- R = T*t;
- plot(R(1,:),R(2,:),'g');
- t2 = (R+[-2;-3])*2;
- plot(t2(1,:),t2(2,:),"k");
- ogl = t2;
- ogl(2,:) = -ogl(2,:);
- plot(ogl(1,:),ogl(2,:),"m");
- hold off;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement