Advertisement
houseofmath

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

Sep 16th, 2024
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Asymptote 0.59 KB | Source Code | 0 0
  1. import geometry;
  2. import patterns;
  3. //import graph;
  4. //import three;
  5. defaultpen(fontsize(11pt));
  6. dotfactor=5;
  7. //labelmargin=0.25;
  8. size(9cm,0);
  9. add ("hatch",hatch (1.2mm , black ));
  10.  
  11. point A,B,C,A1,B1,C1;
  12. C=(0,0); A = 3*dir(0);
  13. B=2.5*dir(60);
  14. A1 = C + 1/3*(B-C);
  15. B1 = A + 1/3*(C-A);
  16. C1=  B + 1/3*(A-B);
  17.  
  18.  
  19. dot(C); dot(A); dot(B);
  20. dot(A1); dot(B1); dot(C1);
  21.  
  22. draw(C--A--B--cycle);
  23. draw(A1--C1--B1--cycle);
  24.  
  25. filldraw(A1--C1--B1--cycle,pattern ("hatch"));
  26.  
  27.  
  28. label("$C$",C,SW); label("$A$",A,SE); label("$B$",B,N);
  29. label("$A_1$",A1,W); label("$B_1$",B1,S); label("$C_1$",C1,E);
Tags: Орёл
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement