Advertisement
sutasuu

Homework№1(pic.7)

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