You may view all the posts of the category "geometry.asy"
|
|
| (Compiled with Asymptote version 2.14svn-r5318) |
import geometry;
size(8cm,0);
// currentcoordsys=cartesiansystem((1,2),i=(1,0.5),j=(-0.5,.75));
// show(currentcoordsys, xpen=invisible);
real R=2;
point A=(1,1);
dot("$A$", A, S, red);
point B=A+(2,1);
dot("$B$", B, N, blue);
arc a=arc(ellipse(A,R,R/2), -40, 180);
arc b=arc(ellipse(B,R,R/2), -45, 220);
line l=line(A,B);
draw(a,red);
draw(b,blue);
draw(l);
/* View the definition of point[] intersectionpoints(arc,arc) */
point[] inter=intersectionpoints(a,b);
dot(inter);
/* View the definition of point[] intersectionpoints(line,arc) */
point[] inter=intersectionpoints(l,a);
dot(inter);
point[] inter=intersectionpoints(l,b);
dot(inter);






