SHARE
TWEET

Untitled

a guest Jan 16th, 2017 939 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. settings.outformat = "png";
  2. settings.render = 3;
  3. unitsize(0.5cm);
  4. import graph;
  5.  
  6. xaxis(Ticks(), EndArrow);
  7. yaxis(Ticks(), EndArrow);
  8.  
  9. void mydot(string label, pair pos) {
  10.   dot(Label(label, align=NE), pos, red);
  11. }
  12. pair A1 = (0, 9);
  13. pair B1 = (6, 3);
  14. pair A2 = (7, 6);
  15. pair B2 = (13, 0);
  16.  
  17. pair C1 = (10, 3);
  18. draw(circle(C1, length(A2 - C1)), magenta + dashed);
  19. draw(A2..A1, blue, arrow=Arrow());
  20. draw(B2..B1, blue, arrow=Arrow());
  21.  
  22. pair C2 = (15, 3);
  23. draw(circle(C2, length(A2 - C2)), blue);
  24. draw(box(A1, B1), blue);
  25. clip(box((-2, -2), (15, 11)));
  26.  
  27. mydot("0", A1);
  28. mydot("1", B1);
  29. mydot("2", A2);
  30. mydot("3", B2);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top