Advertisement
houseofmath

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

Sep 16th, 2024
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Asymptote 0.92 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(10cm,0);
  8. add ("hatchback",hatch (1mm,NW,gray));
  9. point A,B,C,D,M,O;
  10. A=(0,0); D=(4,0);
  11. B=2.5*dir(60);
  12. line AD = line(A,D);
  13. line AB = line(A,B);
  14. line BC = parallel(B,AD);
  15. line CD = parallel(D,AB);
  16. C= intersectionpoint(BC,CD);
  17. M=(B+C)/2;
  18. line AM = line(A,M);
  19. line BD = line(B,D);
  20. O = intersectionpoint(AM,BD);
  21.  
  22. draw(A--B--C--D---cycle,black+0.9bp);
  23. draw(B--D^^A--M,black+0.3bp);
  24. draw(B--C, white+opacity(0), StickIntervalMarker(2, 1, size=0.25cm));
  25.  
  26. filldraw(A--O--D--cycle,pattern ("hatchback"));
  27. filldraw(B--O--M--cycle,pattern ("hatchback"));
  28. markangle(1,10,M,O,B); markangle(1,10,A,O,D);
  29. markangle(2,15,B,M,A); markangle(2,15,D,A,O);
  30.  
  31. dot(A); dot(D); dot(B); dot(C); dot(M); dot(O);
  32.  
  33. label("$A$",A,S);  label("$D$",D,S);
  34. label("$B$",B,N);  label("$C$",C,N);
  35. label("$M$",M,N);  label("$O$",O,1.5W);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement