Advertisement
houseofmath

Орёл Никита ДЗ1(Asymptote) рисунок 3

Sep 16th, 2024
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Asymptote 0.74 KB | Source Code | 0 0
  1. import geometry;
  2. import patterns;
  3. //import graph;
  4. //import three;
  5. defaultpen(fontsize(11pt));
  6. dotfactor=6;
  7. size(9cm,0);
  8. add ("hatchback",hatch (1mm,NW,gray));
  9.  
  10. point A,B,C,D,K,M,N1,L;
  11. A=(0,0); D=(3,0);
  12. B=(1,2.5); C=(2.5,2);
  13. K = (C+D)/2;
  14. L= (A+D)/2;
  15. M = (A+B)/2;
  16. N1=(B+C)/2;
  17.  
  18. dot(A); dot(D); dot(B); dot(C);
  19. dot(K); dot(L); dot(M); dot(N1);
  20.  
  21. draw(A--B--C--D--cycle,black+0.6bp);
  22. draw(A--B, white+opacity(0), StickIntervalMarker(2, 1, size=0.25cm));
  23. draw(B--C, white+opacity(0), StickIntervalMarker(2, 2, size=0.3cm));
  24. filldraw(M--N1--K--L--cycle,pattern ("hatchback"));
  25. draw(A--C);
  26.  
  27. label("$A$",A,S); label("$D$",D,S);
  28. label("$B$",B,N); label("$C$",C,NE);
  29. label("$K$",K,E); label("$L$",L,S);
  30. label("$M$",M,W); label("$N$",N1,N);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement