Advertisement
houseofmath

Глушков Станислав ДЗ1(Asymptote) рисунок 7

Sep 16th, 2024
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Asymptote 1.24 KB | Source Code | 0 0
  1. import geometry;
  2. size(9cm, 0);
  3. defaultpen(fontsize(10pt));
  4. dotfactor = 4;
  5. point A,B,C,D,M,Np,K,L,F,A1,B1,M1;
  6. D=(0,0); A= 4*dir(65); B= 5.5*dir(30); C=6*dir(0);
  7. M= point(A--B, 1/5);
  8. Np= point(C--D, 1/3);
  9. line DC = line(D,C);
  10. //line a = perpendicular(A, DC);
  11. line m = perpendicular(M, DC);
  12. line b = perpendicular(B, DC);
  13. K=intersectionpoint(line(D,M),line(A,Np));
  14. L=intersectionpoint(line(C,M),line(B,Np));
  15. //A1=intersectionpoint(DC,a);
  16. A1=projection(D,C)*A;
  17. M1=intersectionpoint(DC,m);
  18. B1=intersectionpoint(DC,b);
  19. F=intersectionpoint(line(A1,B),line(M,M1));
  20.  
  21. fill(A--K--D--cycle, blue+white);
  22. fill(B--L--C--cycle, blue+white);
  23. fill(K--M--L--Np--cycle, red);
  24.  
  25. markrightangle(size=7, A, A1, D);
  26. markrightangle(size=7, M, M1, D);
  27. markrightangle(size=7, B, B1, D);
  28.  
  29. draw(D--M^^M--C);
  30. draw(A--Np^^Np--B);
  31. draw(A1--B);
  32. draw(A--A1^^M--M1^^B--B1);
  33. draw(A--B--C--D--cycle);
  34.  
  35. dot(A); label("$A$", A, N);
  36. dot(B); label("$B$", B, N);
  37. dot(C); label("$C$", C, S);
  38. dot(D); label("$D$", D, S);
  39. dot(M); label("$M$", M, N);
  40. dot(Np); label("$N$", Np, S);
  41. dot(K); label("$K$", K, 2*S);
  42. dot(L); label("$L$", L, 2*N+0.5*W);
  43. dot(F); label("$F$", F, WNW);
  44. dot(A1); label("$A_1$", A1, S);
  45. dot(B1); label("$B_1$", B1, S);
  46. dot(M1); label("$M_1$", M1, S);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement