🔗Asymptote Gallery Tagged by “Ellipse” #125
đź”—animations-fig010
Show animations/fig0110.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Animation
Tags : #Ellipse | #Tangent | #Geometry | #Animation
import geometry; import animate; // settings.tex="pdflatex"; // settings.outformat="pdf"; animation anim; size(12cm); point F1=(0, 0), F2=(0, -3); dot("F", F1); ellipse el1=ellipse(F1, F2, 2), el2; point Fp1=shift(0, 2*el1.a)*F1; dot("F'", Fp1); line tgt, saxe=line(F1, false, -F2); for (int i=0; i < 360; i += 5) { save(); ellipse el=rotate(i, F1)*el1; point M=intersectionpoints(el, saxe)[0]; tgt=tangents(el, M)[0]; draw(tgt, 0.8*red); draw((reflect(tgt)*el)^^el, linewidth(bp)); anim.add(); restore(); } erase(); anim.movie();
đź”—animations-fig011
Show animations/fig0120.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Animation
Tags : #Ellipse | #Tangent | #Geometry | #Animation | #Locus
import geometry; import animate; animation anim; size(16cm); point F1=(0, 0), F2=(10, 0); dot("F", F2); ellipse el1=ellipse(F1, F2, 6), el2; draw(el1, linewidth(bp)); point Fp2=shift(2*el1.a, 0)*F2; line tgt, saxe; pen[] p=new pen[]{0.8*green, 0.8*blue, 0.8*yellow, cyan}; path[] locus=sequence(new path(int i){return nullpath;}, p.length); real t=1/(p.length-1); bool initlocus=true; for (int i=0; i < 360; i += 1) { save(); point Fm=rotate(i, F2)*Fp2; dot("F'", Fm); draw(Fm--F2, linewidth(2bp)); point M=intersectionpoints(el1, line(F2, false, Fm))[0]; tgt=tangents(el1, M)[0]; draw(tgt, 0.8*red); el2=reflect(tgt)*el1; draw(el2.F1--el2.F2); for (int j=0; j < p.length; ++j) { point P=point(segment(el2.F2, Fm), 0.5+j*t/2); locus[j]=initlocus ? P : locus[j]--P; dot(P, p[j]); draw(locus[j], bp+p[j]); } dot(el2.F2); draw(el2, linewidth(bp)); anim.add(); restore(); initlocus=false; } erase(); anim.movie();
đź”—geometry-fig027

Show geometry/fig0270.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Coords system | #Circle | #Ellipse | #Path
import geometry; size(8cm,0); currentcoordsys=cartesiansystem((0,0),i=(1,1),j=(-0.5,.75)); show("","$\vec{u}$", "$\vec{v}$", currentcoordsys, ipen=blue); show(defaultcoordsys); point A=(0,0); real R=2; /*<asyxml><view file="modules/geometry.asy" type="" signature="struct circle"/></asyxml>*/ circle C=circle(A,R); draw(C,1.5mm+red); circle Cp=circle(point(defaultcoordsys,A),R); draw(Cp,0.75mm+blue); // One can draw in the 'currentcoordsys' a circle definided in // the 'defaultcoordsys' /*<asyxml><view file="modules/geometry.asy" type="path" signature="*(coordsys,path)"/></asyxml>*/ draw(currentcoordsys*Cp, red+blue);
đź”—geometry-fig029

Show geometry/fig0290.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Coords system | #Transform/scale/shift/rotate | #Ellipse | #Circle
import geometry; size(8cm,0); currentcoordsys=cartesiansystem((2,1),i=(1,0.5),j=(-0.25,.75)); show(currentcoordsys); point A=(1,1); dot("$A$",A,S,red); real R=2; circle C=circle(A,R); draw(C,Arrow); /*<asyxml><view file="modules/geometry.asy" type="ellipse" signature="*(transform,circle)"/></asyxml>*/ ellipse el=xscale(2)*C; draw(el,blue,Arrow); // /*<asyxml><view file="modules/geometry.asy" type="transform" signature="xscale(real,point)"/></asyxml>*/ ellipse el=xscale(2,A)*C; draw(el,red,Arrow);
đź”—geometry-fig030

Show geometry/fig0300.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Coords system | #Transform/scale/shift/rotate | #Ellipse | #Circle
import geometry; size(8cm,0); currentcoordsys=cartesiansystem((2,1),i=(1,0.5),j=(-0.25,.75)); show(currentcoordsys); point A=(1,1); dot("$A$",A,S,red); real R=2; circle C=circle(A,R); draw(C,Arrow); /*<asyxml><view file="modules/geometry.asy" type="ellipse" signature="*(transform,circle)"/></asyxml>*/ draw(scale(0.5)*C,red,Arrow); draw(scale(0.5,A)*C,2mm+0.8*blue); /*<asyxml><view file="modules/geometry.asy" type="circle" signature="/(explicit circle,real)"/></asyxml>*/ draw(C/2,0.75mm+green,Arrow(4mm)); // Note that the point 'point(C,0)' is always at the same place relatively to 'C'. draw(rotateO(180)*C/2,0.8*yellow,Arrow);
đź”—geometry-fig031

Show geometry/fig0310.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Coords system | #Transform/scale/shift/rotate | #Ellipse | #Circle
import geometry; size(10cm,0); currentcoordsys=cartesiansystem((2,1),i=(1,0.5),j=(-0.25,.75)); show(currentcoordsys); point A=(1,1); dot("$A$",A,S,red); real a=3, b=2; ellipse el=ellipse(A,a,b,0); draw(el,Arrow); /*<asyxml><view file="modules/geometry.asy" type="ellipse" signature="*(transform,ellipse)"/></asyxml>*/ draw(scale(0.5)*el,red,Arrow); draw(scale(0.5,A)*el,2mm+0.8*blue); /*<asyxml><view file="modules/geometry.asy" type="ellipse" signature="/(ellipse,real)"/></asyxml>*/ draw(el/2,0.75mm+green,Arrow(4mm)); // Note that the point 'point(el,0)' is always at the same place relatively to 'el'. draw(rotateO(135)*el/2,0.8*yellow,Arrow);
đź”—geometry-fig036

Show geometry/fig0360.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Line | #Ellipse | #Intersection
import geometry; size(8cm,0); currentcoordsys=cartesiansystem((2,1),i=(1,0.5),j=(-0.25,.75)); show(currentcoordsys); point A=(-1,0); point B=(0.5,-3sin(2)); dot("$A$",A,S,red); dot("$B$",B,N,red); line l=line(A,B); ellipse el=ellipse((0,-sqrt(2)/2),3,2,90); draw(l); draw(el,Arrow); /*<asyxml><view file="modules/geometry.asy" type="point[]" signature="intersectionpoints(line,ellipse)"/></asyxml>*/ point[] inter=intersectionpoints(l,el); dot("$M$", inter[0], 4N+2W, red); dot("$N$", inter[1], 2S+0.5E, red);
đź”—geometry-fig040

Show geometry/fig0400.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Line | #Intersection | #Ellipse
import geometry; size(8cm,0); currentcoordsys=cartesiansystem((0,0),i=(1,1),j=(-0.5,.75)); show(currentcoordsys); point A=(-0.5,.75); point B=(1,1); dot("$A$",A,SE); dot("$B$",B,NW); line l=line(A,B,false); line ll=hline()+B; ellipse el=ellipse((point)(0.5,0.5),3,2); draw(l^^ll); draw(complementary(l),dashed+grey); draw(el); dotfactor*=2; /*<asyxml><view file="modules/geometry.asy" type="point[]" signature="intersectionpoints(line,ellipse)"/></asyxml>*/ dot(intersectionpoints(l,el),red); dot(intersectionpoints(ll,el),red);
đź”—geometry-fig043

Show geometry/fig0430.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Intersection | #Ellipse
import geometry; size(10cm,0); // currentcoordsys=cartesiansystem((0,0),i=(1,1),j=(-0.5,.75)); // show(currentcoordsys); point C=(0,0); point Cp=(0.5,0.5); dot("$C$",C,NW,red); dot("$C'$",Cp,N,red); ellipse el1=ellipse(C,2,1); ellipse el2=ellipse(Cp,3,1,40); draw(el1^^el2); dotfactor*=2; /*<asyxml><view file="modules/geometry.asy" type="point[]" signature="intersectionpoints(ellipse,ellipse)"/></asyxml>*/ point[] inter=intersectionpoints(el1,el2); dot(inter);
đź”—geometry-fig046

Show geometry/fig0460.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Line | #Intersection | #Ellipse | #Abscissa | #Point | #Tangent
import geometry; size(10cm,0); // currentcoordsys=cartesiansystem((0,0),i=(1,0.5),j=(-0.5,.75)); show(currentcoordsys, xpen=invisible); point A=(-1,-1); point B=(0.75,0.5); dot("$A$",A,NW,red); dot("$B$",B,N,red); ellipse el1=ellipse(A,2,1.5); ellipse el2=ellipse(B,3,2); draw(el1); draw(el2,Arrow); point[] inter=intersectionpoints(el1,el2); dot("$M$", inter[0], 2NW, red); /*<asyxml><view file="modules/geometry.asy" type="line[]" signature="tangents(ellipse,point)"/></asyxml>*/ draw(tangents(el1,inter[0]), grey); draw(tangents(el2,inter[0]), grey); /*<asyxml><view file="modules/geometry.asy" type="line" signature="tangent(ellipse,abscissa)"/></asyxml>*/ draw(tangent(el2,angabscissa(90)), grey);
đź”—geometry-fig051

Show geometry/fig0510.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Line | #Intersection | #Circle | #Tangent | #Ellipse | #Point
import geometry; size(12cm,0); // currentcoordsys=cartesiansystem((0,0),i=(1,0.5),j=(-0.5,.75)); // show(currentcoordsys, xpen=invisible); point A=(2.5,-1); dot("$A$",A,SW); ellipse el1=ellipse(A,2,1,10); draw(el1); circle C=circle(A,3); draw(C); for (int i=0; i < 360; i+=90) { point B=point(C,angabscissa(i)); dot("$B$",B,locate(unit(B-A))); line[] tgt=tangents(el1,B); draw(tgt,0.8*red); for (int i=0; i < tgt.length; ++i) { dot(intersectionpoints(el1,tgt[i]),blue); } }
đź”—geometry-fig052

Show geometry/fig0520.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Line | #Intersection | #Circle | #Tangent | #Ellipse | #Point
import geometry; size(12cm,0); // currentcoordsys=cartesiansystem((0,0),i=(1,0.5),j=(-0.5,.75)); // show(currentcoordsys, xpen=invisible); point F=(0,0); dot("$F$", F, SW); parabola p=parabola(F, 0.1, 30); draw(p); point C=shift(2*(p.V-p.F))*p.V; circle cle=circle(C, 0.2); draw(cle); for (int i=0; i < 360; i+=90) { point M=point(cle, angabscissa(i)); dot("$M$", M, locate(unit(M-C))); line[] tgt=tangents(p, M); draw(tgt, 0.8*red); for (int i=0; i < tgt.length; ++i) { dot(intersectionpoints(p, tgt[i]), blue); } }
đź”—geometry-fig054

Show geometry/fig0540.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Coords system | #Ellipse | #Point
import geometry; size(8cm,0); currentcoordsys=cartesiansystem((2,1),i=(1,1),j=(-0.5,1)); show(currentcoordsys, xpen=invisible); point A=(3.5,1), B=(1.75,3), C=(-1,2), D=(-1.5,-0.5), F=(1.5,-1); dot("$A$",A); dot("$B$",B,N); dot("$C$",C,NW); dot("$D$",D,SW); dot("$F$",F,SE); /*<asyxml><view file="modules/geometry.asy" type="ellipse" signature="ellipse(point,point,point,point,point)"/></asyxml>*/ ellipse el=ellipse(A,B,C,D,F); draw(el); dot("$F_1$",el.F1,NW); dot("$F_2$",el.F2,NW); /*<asyxml><view file="modules/geometry.asy" type="coordsys" signature="canonicalcartesiansystem(ellipse)"/></asyxml>*/ coordsys R=canonicalcartesiansystem(el); show("$C$", "$\vec{u}$", "$\vec{v}$", R, xpen=blue);
đź”—geometry-fig058

Show geometry/fig0580.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Ellipse | #Abscissa | #Point
import geometry; size(12cm,0); currentcoordsys=cartesiansystem((0,0),i=(1,0.5),j=(-0.5,.75)); show(currentcoordsys, xpen=invisible); point A=(2,-1.5); dot("$A$",A,S,red); ellipse el=ellipse(A,3,1,20); draw(el); /*<asyxml><view file="modules/geometry.asy" type="point" signature="relpoint(explicit ellipse,real)"/></asyxml>*/ dot("relpoint(el, 0)",relpoint(el,0),E); /*<asyxml><view file="modules/geometry.asy" type="point" signature="point(ellipse,abscissa)"/></asyxml>*/ dot("relpoint(el, 0.25)",point(el,Relative(0.25)),NW); // point(el,Relative(0.25)) can be replaced by relpoint(el,0.25) OR point(el,relabscissa(0.25)) dot("relpoint(el, 0.5)",relpoint(el,0.5),W); dot("relpoint(el, 0.75)",relpoint(el,0.75),SE); dot("relpoint(el, 1.125)",relpoint(el,1.125),NW);
đź”—geometry-fig061

Show geometry/fig0610.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Ellipse | #Abscissa | #Point
import geometry; size(12cm,0); currentcoordsys=cartesiansystem((0,0),i=(1,0.5),j=(-0.5,.75)); show(currentcoordsys, xpen=invisible); point A=(4,2); ellipse el=ellipse(A,3,2,30); draw(el); dot("$C$",el.C,S,red); /*<asyxml><view file="modules/geometry.asy" type="pair" signature="curpoint(explicit ellipse,real)"/></asyxml>*/ dot("curpoint(el, 0)", curpoint(el,0), E); real L=arclength(el); dot("curpoint(el, L/8)", curpoint(el,L/8),NW); dot("curpoint(el, -L/8)", curpoint(el,-L/8)); /*<asyxml><view file="modules/geometry.asy" type="abscissa" signature="curabscissa(real)"/></asyxml>*/ dot("point(el,curabscissa(L/4))", point(el,curabscissa(L/4)),NW); // point(el,curabscissa(pi)) can be replaced by curpoint(el,pi) dot("curpoint(el, L/2)", curpoint(el,L/2),W); dot("curpoint(el, 3*L/4)", curpoint(el,3*L/4),SE); dot("curpoint(el, 9*L/8)", curpoint(el,9*L/8),4N+4W);
đź”—geometry-fig064

Show geometry/fig0640.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Ellipse | #Abscissa | #Point
import geometry; size(12cm,0); currentcoordsys=cartesiansystem((0,0),i=(1,0.5),j=(-0.5,.75)); show(currentcoordsys, xpen=invisible); point A=(4,2); ellipse el=ellipse(A,3,2,20); draw(el); dot("$C$",el.C,2W,red); dot("$F_1$",el.F1,S); dot("$F_2$",el.F2,S); /*<asyxml><view file="modules/geometry.asy" type="point" signature="angpoint(explicit ellipse,real,polarconicroutine)"/></asyxml>*/ point P=angpoint(el, 0); dot("angpoint(el, 0)", P,E); draw(el.F1--P); point P=angpoint(el, 90); dot("angpoint(el, 90)", P,NW); draw(el.F1--P); point P=angpoint(el, 90, fromCenter); dot("angpoint(el,90,fromCenter)", P,NW); draw(el.C--P); /*<asyxml><view file="modules/geometry.asy" type="abscissa" signature="angabscissa(real,polarconicroutine)"/></asyxml>*/ dot("angpoint(el, 180)", point(el,angabscissa(180)), W); // point(el,angabscissa(180)) can be replaced by angpoint(el,180) dot("angpoint(el, 270)", angpoint(el,270),SE); dot("angpoint(el, 370)", angpoint(el,370),NE); dot("angpoint(el, -45)", angpoint(el,-45),SE); point P=angpoint(el, -45, fromCenter); dot("angpoint(el,-45,fromCenter)", P,S); draw(el.C--P);
đź”—geometry-fig065

Show geometry/fig0650.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Ellipse | #Abscissa | #Point
import geometry; size(15cm,0); currentcoordsys=cartesiansystem((0,0),i=(1,0.5),j=(-0.5,.75)); show(currentcoordsys, xpen=invisible); point A=(4,2); ellipse el=ellipse(A,3,2,20); draw(el); dot("$C$",el.C,S,red); dot("$F_1$",el.F1,S); dot("$F_2$",el.F2,S); /////////////////////////////////////// currentpolarconicroutine=fromCenter;// ///////////////////////////////////// /*<asyxml><view file="modules/geometry.asy" type="point" signature="angpoint(explicit ellipse,real,polarconicroutine)"/></asyxml>*/ point P=angpoint(el, 0); dot("angpoint(el, 0)", P,E); draw(el.C--P); point P=angpoint(el, 90); dot("angpoint(el, 90)", P,NW); draw(el.C--P); point P=angpoint(el, 90, fromFocus); dot("angpoint(el,90,fromFocus)", P,NW); draw(el.F1--P); /*<asyxml><view file="modules/geometry.asy" type="abscissa" signature="angabscissa(real,polarconicroutine)"/></asyxml>*/ dot("angpoint(el, 180)", point(el,angabscissa(180)), W); dot("angpoint(el, 370)", angpoint(el,370),NE); dot("angpoint(el, -45)", angpoint(el,-45),SE); point P=angpoint(el, -45, fromFocus); dot("angpoint(el,-45,fromFocus)", P,S); draw(el.F1--P);
đź”—geometry-fig070

Show geometry/fig0700.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Abscissa | #Ellipse | #Point
import geometry; size(10cm,0); // currentcoordsys=cartesiansystem((0,0),i=(1,0.5),j=(-0.5,.75)); // show(currentcoordsys, xpen=invisible); point A=(4,2); real a=2, b=3; ellipse el=ellipse(A,a,b); dot("$C$",el.C,N,red); draw(el,linewidth(1mm)); /*<asyxml><view file="modules/geometry.asy" type="point" signature="point(explicit ellipse,explicit real)"/></asyxml>*/ dot("point(el, 0)", point(el,0),N,3mm+blue); dot("point(el, 15)", point(el,15),2W,3mm+blue); /*<asyxml><view file="modules/geometry.asy" type="abscissa" signature="nodabscissa(real)"/></asyxml>*/ dot("point(el, 40)", point(el,nodabscissa(40)), 2W,3mm+blue); // point(el,nodabscissa(40)) can be replaced by point(el,40) /*<asyxml><view file="modules/geometry.asy" type="int" signature="circlenodesnumber(real)"/></asyxml>*/ dot("point(el, 3*circlenodesnumber(max(a,b))/4)", point(el, 3*circlenodesnumber(max(a,b))/4), S, 3mm+blue); dot((path)el, yellow);
đź”—geometry-fig074

Show geometry/fig0740.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Abscissa | #Ellipse | #Point
import geometry; unitsize(2cm); // currentcoordsys=cartesiansystem((0,0),i=(1,0.5),j=(-0.5,.75)); show(currentcoordsys, xpen=invisible); point A=(-2,2); dot("$A$",A,S); point B=A+(cos(0.5),cos(1)); dot("$B$",B,S); ellipse el=ellipse(A,3,2,0); draw(el); line l=line(A,B); draw(l); point M=intersectionpoints(l,el)[0]; point P=intersectionpoints(l,el)[1]; /*<asyxml><view file="modules/geometry.asy" type="void" signature="dot(picture,Label,explicit point,align,string,pen)"/></asyxml>*/ dot("",M,2E,linewidth(2mm)); dot("$M$",M,2W); dot("",P,2E); dot("$P$",P,2W,linewidth(2mm)); pair p=A-(4,2.5); transform t=shift((0,-0.3)); transform T=shift((4,0)); real x; /*<asyxml><view file="modules/geometry.asy" type="abscissa" signature="angabscissa(ellipse,point,polarconicroutine)"/></asyxml>*/ x=angabscissa(el,M).x; label("angabscissa(el,M).x=$"+(string)x+"^\circ$",p,E); dot(angpoint(el,x),1mm+red); x=angabscissa(el,P).x; label("angabscissa(el,P).x=$"+(string)x+"^\circ$",T*p,E); dot(angpoint(el,x),1mm+red); p=t*p; /*<asyxml><view file="modules/geometry.asy" type="abscissa" signature="curabscissa(ellipse,point)"/></asyxml>*/ x=curabscissa(el,M).x; dot(curpoint(el,x),1mm+red); label("curabscissa(el,M).x="+(string)x,p,E); x=curabscissa(el,P).x; label("curabscissa(el,P).x="+(string)x,T*p,E); dot(curpoint(el,x),1mm+red); p=t*p; /*<asyxml><view file="modules/geometry.asy" type="abscissa" signature="nodabscissa(ellipse,point)"/></asyxml>*/ x=nodabscissa(el,M).x; label("nodabscissa(el,M).x="+(string)x,p,E); dot(point(el,x),1mm+red); x=nodabscissa(el,P).x; label("nodabscissa(el,P).x="+(string)x,T*p,E); dot(point(el,x),1mm+red); p=t*p; /*<asyxml><view file="modules/geometry.asy" type="abscissa" signature="relabscissa(ellipse,point)"/></asyxml>*/ x=relabscissa(el,M).x; label("relabscissa(el,M).x="+(string)x,p,E); dot(relpoint(el,x),1mm+red); x=relabscissa(el,P).x; label("relabscissa(el,P).x="+(string)x,T*p,E); dot(relpoint(el,x),1mm+red);
đź”—geometry-fig076

Show geometry/fig0760.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Ellipse | #Draw (2D) | #Circle | #Parabola | #Hyperbola | #Conic | #Intersection
import geometry; size(12cm); // currentcoordsys=cartesiansystem((2,1),i=(1,0.5),j=(-0.25,0.75)); // currentcoordsys=cartesiansystem((2,1),i=rotate(45)*(1,0),j=rotate(45)*(0,1)); // show(currentcoordsys); conic co[]; co[0]=circle((point)(0,0),1); /*<asyxml><view file="modules/geometry.asy" type="void" signature="draw(picture,Label,explicit conic,align,pen,arrowbar,arrowbar,margin,Label,marker)"/></asyxml>*/ draw(co[0]); co[1]=ellipse((point)(0,0),4,1); draw(co[1]); co[2]=parabola((0,0),1,90); draw(co[2]); hyperbola h=hyperbola((-1,0),(1,0),1.2,byvertices); co[3]=h; draw(co[3]); draw(h.A1,grey); draw(h.A2,grey); dotfactor *= 1; for (int i=0; i < 4; ++i) { dot(intersectionpoints(h.A1,co[i]),blue); dot(intersectionpoints(h.A2,co[i]),blue); for (int j=i+1; j < 4; ++j) /*<asyxml><view file="modules/geometry.asy" type="point[]" signature="intersectionpoints(conic,conic)"/></asyxml>*/ dot(intersectionpoints(co[i],co[j]), red); }
đź”—geometry-fig077

Show geometry/fig0770.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Arc | #Circle | #Ellipse
import geometry; size(8cm); currentcoordsys=cartesiansystem((1,2),i=(1,0.5),j=(-0.5,.75)); // show(currentcoordsys, xpen=invisible); point A=(-1,0) ; dot("$A$",A,S); point B=(1,1) ; dot("$B$",B,S); point C=(0,1) ; dot("$C$",C,SW); point D=(1,-1) ; dot("$D$",D,SW); circle c=circle(origin(),2); line l1=line(A,B); draw(l1); line l2=line(C,D); draw(l2); point[] J=intersectionpoints(l1,c); point[] K=intersectionpoints(l2,c); /*<asyxml><view file="modules/geometry.asy" type="arc" signature="arc(ellipse,point,point,bool)"/></asyxml>*/ draw(arc(c,J[0],K[0]),1mm+0.8yellow); draw(arc(c,K[0],J[1]),1mm+0.8red); /*<asyxml><view file="modules/geometry.asy" type="arc" signature="arc(ellipse,abscissa,abscissa,bool)"/></asyxml>*/ draw(arc(c,angabscissa(c,J[1]),angabscissa(c,K[1])),1mm+0.8blue); draw(arc(c,angabscissa(c,K[1]),angabscissa(c,J[0])),1mm+0.8green); dot("$J_0$",J[0],2W); dot("$J_1$",J[1],2N); dot("$K_0$",K[0],2E) ; dot("$K_1$",K[1],2N+W);
đź”—geometry-fig078

Show geometry/fig0780.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Arc | #Circle | #Ellipse
import geometry; size(8cm); // currentcoordsys=cartesiansystem((1,2),i=(1,0.5),j=(-0.5,.75)); // show(currentcoordsys, xpen=invisible); point A=(-1,0) ; dot("$A$",A,S); point B=(1,1) ; dot("$B$",B,S); point C=(0,1) ; dot("$C$",C,SW); point D=(1,-1) ; dot("$D$",D,SW); ellipse el=ellipse((point)(0,0.5),2,1); line l1=line(A,B); draw(l1); line l2=line(C,D); draw(l2); point[] J=intersectionpoints(l1,el); point[] K=intersectionpoints(l2,el); /*<asyxml><view file="modules/geometry.asy" type="arc" signature="arc(ellipse,point,point,bool)"/></asyxml>*/ draw(arc(el, J[0],K[0]), 1mm+0.8yellow); draw(arc(el, K[0],J[1]), 1mm+0.8red); /*<asyxml><view file="modules/geometry.asy" type="arc" signature="arc(ellipse,abscissa,abscissa,bool)"/></asyxml>*/ draw(arc(el,angabscissa(el,J[1]), angabscissa(el,K[1])), 1mm+0.8blue); draw(arc(el,angabscissa(el,K[1]), angabscissa(el,J[0])), 1mm+0.8green); dot("$J_0$", J[0], 2N); dot("$J_1$", J[1], 2S); dot("$K_0$", K[0], 2NE) ; dot("$K_1$", K[1], 2dir(-35));
đź”—geometry-fig080

Show geometry/fig0800.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Arc | #Circle | #Ellipse | #Transform/scale/shift/rotate
import geometry; size(8cm,0); // currentcoordsys=cartesiansystem((1,2),i=(1,0.5),j=(-0.5,.75)); show(currentcoordsys, xpen=invisible); point A=(1,1); dot("$A$",A,S,0.8red); real R=2; /*<asyxml><view file="modules/geometry.asy" type="" signature="struct arc"/></asyxml>*/ arc C=arc(circle(A,R),45,180);/*<asyxml><view file="modules/geometry.asy" type="arc" signature="arc(ellipse,real,real,polarconicroutine,bool)"/></asyxml>*/ draw(C,Arrow); /*<asyxml><view file="modules/geometry.asy" type="arc" signature="complementary(arc)"/></asyxml>*/ draw(complementary(C),dashed+grey,Arrow(position=Relative(0.75))); /*<asyxml><view file="modules/geometry.asy" type="arc" signature="*(transform,explicit arc)"/></asyxml>*/ arc Cp=scale(0.5,A)*C; draw(Cp,0.8red,Arrow); arc Cp=scale(-0.5,A)*C; draw(Cp,0.8blue,Arrow); arc Cp=scale(1.1,A)*C; /*<asyxml><view file="modules/geometry.asy" type="arc" signature="reverse(arc)"/></asyxml>*/ draw(reverse(Cp),0.8*yellow,Arrow); arc Cp=scale(0.9,A)*C; draw(rotate(225,A)*Cp,0.8green,Arrow);
đź”—geometry-fig081

Show geometry/fig0810.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Arc | #Circle | #Ellipse | #Transform/scale/shift/rotate
import geometry; size(8cm,0); // currentcoordsys=cartesiansystem((1,2),i=(1,0.5),j=(-0.5,.75)); show(currentcoordsys, xpen=invisible); point A=(1,1); dot("$A$",A,S,0.8red); real R=2; /*<asyxml><view file="modules/geometry.asy" type="" signature="struct arc"/></asyxml>*/ arc C=arc(ellipse(A,2R,R),45,180,fromCenter); draw(C,Arrow); /*<asyxml><view file="modules/geometry.asy" type="arc" signature="complementary(arc)"/></asyxml>*/ draw(complementary(C),dashed+grey,Arrow(position=Relative(0.75))); /*<asyxml><view file="modules/geometry.asy" type="arc" signature="*(transform,explicit arc)"/></asyxml>*/ arc Cp=scale(0.5,A)*C; draw(Cp,0.8red,Arrow); arc Cp=scale(-0.5,A)*C; draw(Cp,0.8blue,Arrow); arc Cp=scale(1.1,A)*C; /*<asyxml><view file="modules/geometry.asy" type="arc" signature="reverse(arc)"/></asyxml>*/ draw(reverse(Cp),0.8*yellow,Arrow); arc Cp=scale(0.9,A)*C; draw(rotate(225,A)*Cp,0.8green,Arrow);
đź”—geometry-fig084

Show geometry/fig0840.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Arc | #Ellipse | #Transform/scale/shift/rotate | #Markers
import geometry; size(8cm,0); // currentcoordsys=cartesiansystem((1,2),i=(1,0.5),j=(-0.5,.75)); // show(currentcoordsys, xpen=invisible); point C=(1,1); dot("$C$", C, NE, red); real R=2; arc a=arc(ellipse(C,R,R/2), 90, 0, fromCenter); draw(a, linewidth(4mm)); /*<asyxml><view file="modules/geometry.asy" type="void" signature="markarc(picture,Label,int,real,real,arc,arrowbar,pen,pen,margin,marker)"/></asyxml>*/ markarc(format("%0g", degrees(a)), radius=-0.5*markangleradius(), a); /*<asyxml><view file="modules/geometry.asy" type="arc" signature="*(real, explicit arc)"/></asyxml>*/ draw(0.5*a, 2mm+yellow); arc ap=a/3; draw(ap, 1mm+blue); markarc(format("%0g", degrees(ap)), radius=1.5*markangleradius(), ap, blue);
đź”—geometry-fig087

Show geometry/fig0870.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Arc | #Ellipse | #Abscissa | #Point
import geometry; size(12cm,0); // currentcoordsys=cartesiansystem((1,2), i=(1,0.5), j=(-0.5,.75)); show(currentcoordsys, xpen=invisible); point A=(1,1); dot("$A$", A, S, red); arc C=arc(ellipse(A,2,1,45), 45, 270, fromCenter); // arc C=arc(ellipse(A,2,1), 45, -45); draw(C, Arrow); draw(complementary(C), grey+dashed); distance("$R=2$",A,point(C.el,0),0); /*<asyxml><view file="modules/geometry.asy" type="point" signature="relpoint(arc,real)"/></asyxml>*/ dot("relpoint(C, 0)", relpoint(C,0),W); /*<asyxml><view file="modules/geometry.asy" type="point" signature="point(arc,abscissa)"/></asyxml>*/ dot("relpoint(C, 0.25)", point(C,Relative(0.25)),W);// point(C,Relative(0.25)) is similar to relpoint(C,0.25) dot("relpoint(C, -0.5)", relpoint(C,-0.5),E); dot("relpoint(C, 0.5)", relpoint(C,0.5),W); dot("relpoint(C, 0.75)", relpoint(C,0.75),SE); dot("relpoint(C, 1.25)", relpoint(C,1.25),E);
đź”—geometry-fig089

Show geometry/fig0890.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Arc | #Ellipse | #Abscissa | #Point
import geometry; size(12cm,0); // currentcoordsys=cartesiansystem((1,2),i=(1,0.5),j=(-0.5,.75)); show(currentcoordsys, xpen=invisible); point A=(3.5,0.5); dot("$A$",A,SW,red); arc C=arc(ellipse(A,2,1,-30),90,270,fromCenter,CCW); real l=arclength(C); draw(C,Arrow); draw(complementary(C),grey+dashed); distance("$R=2$",A,point(C.el,0),0); /*<asyxml><view file="modules/geometry.asy" type="point" signature="curpoint(arc,real)"/></asyxml>*/ dot("curpoint(C, 0)", curpoint(C,0),E); dot("curpoint(C, l/4)", curpoint(C,l/4),0.5N+E); dot("curpoint(C, -l/4)", curpoint(C,-l/4)); dot("curpoint(C, l/2)", point(C,curabscissa(l/2)),W); // point(C,curabscissa(l/2)) is similar to curpoint(C,pi) dot("curpoint(C, l)", curpoint(C,l), SW); dot("curpoint(C, 3*l/2)", curpoint(C,3*l/2),E);
đź”—geometry-fig091

Show geometry/fig0910.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Arc | #Ellipse | #Point | #Abscissa
import geometry; size(12cm,0); // currentcoordsys=cartesiansystem((1,2),i=(1,0.5),j=(-0.5,.75)); show(currentcoordsys, xpen=invisible); point A=(3.5,0.5); dot("$A$", A, S, red); /*<asyxml><view file="modules/geometry.asy" type="arc" signature="reverse(arc)"/></asyxml>*/ arc C=reverse(arc(ellipse(A,2,1,20), 45, 270, fromCenter)); draw(C,Arrow); draw(complementary(C), grey+dashed); distance("$R=2$",A,point(C.el,0),0); /*<asyxml><view file="modules/geometry.asy" type="point" signature="angpoint(arc,real)"/></asyxml>*/ dot("angpoint(C, 90)", angpoint(C,90), SW); dot("angpoint(C, 180)", point(C,angabscissa(180)), NW); // point(C,angabscissa(180)) is similar to angpoint(C,180) dot("angpoint(C, 270)", angpoint(C,270), E); dot("angpoint(C, -45)", angpoint(C,-45), E);
đź”—geometry-fig093

Show geometry/fig0930.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Arc | #Ellipse | #Abscissa | #Point
import geometry; unitsize(1.5cm); // currentcoordsys=cartesiansystem((1,2),i=(1,0.5),j=(-0.5,.75)); show(currentcoordsys, xpen=invisible); real R=2; point A=(3.5,1.5); dot("$A$",A,S,red); arc C=arc(ellipse(A,2,1,45), 45, 270, fromCenter); draw(C,Arrow); draw(complementary(C),grey+dashed); distance("$R=2$",A,point(C.el,0),0); /*<asyxml><view file="modules/geometry.asy" type="point" signature="point(arc,real)"/></asyxml>*/ dot("point(C, 15)", point(C,15), W, 3mm+blue); dot("point(C, 30)", point(C,nodabscissa(30)), // OR point(C,40) S,3mm+blue); /*<asyxml><view file="modules/geometry.asy" type="int" signature="arcnodesnumber(explicit arc)"/></asyxml>*/ dot(Label("point(C, 3*arcnodesnumber(R)/4)",UnFill), point(C, 3*arcnodesnumber(C)/4), 2E, 3mm+blue); dot((path)C, yellow);
đź”—geometry-fig095

Show geometry/fig0950.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Arc | #Ellipse | #Abscissa | #Point
import geometry; unitsize(2cm); linemargin=0.5cm; // currentcoordsys=cartesiansystem((1,2),i=(1,0.5),j=(-0.5,.75)); show(currentcoordsys, xpen=invisible); point A=(3.5,0.75); dot("$A$",A,S); point B=A+(cos(0.5),cos(1)); dot("$B$",B,S); arc c=rotate(45,B)*xscale(2,A)*arc(circle(A,2), 45, 270, CCW); arc cc=complementary(c); draw(c,Arrow); draw(cc,dashed+grey); line l=line(A,B); draw(l); point M=intersectionpoints(l,c)[0]; point P=intersectionpoints(l,cc)[0]; dot("", M, 2E); dot("$M$", M, 2W, linewidth(2mm)); dot("", P, 2E); dot("$P$", P, 2W, linewidth(2mm)); dot("$O$", point(c,0), SE); point p=A-(4,2.5); transform t=shift((0,-0.3)); transform T=shift((4,0)); real x; /*<asyxml><view file="modules/geometry.asy" type="abscissa" signature="angabscissa(arc,point)"/></asyxml>*/ x=angabscissa(c,M).x; label("angabscissa(c,M).x=$"+(string)x+"^\circ$",p,E); dot(angpoint(c,x),1mm+red); x=angabscissa(c,P).x; label("angabscissa(c,P).x=$"+(string)x+"^\circ$",T*p,E); dot(angpoint(c,x),1mm+red); p=t*p; /*<asyxml><view file="modules/geometry.asy" type="abscissa" signature="curabscissa(arc,point)"/></asyxml>*/ x=curabscissa(c,M).x; dot(curpoint(c,x),1mm+red); label("curabscissa(c,M).x="+(string)x,p,E); x=curabscissa(c,P).x; label("curabscissa(c,P).x="+(string)x,T*p,E); dot(curpoint(c,x),1mm+red); p=t*p; /*<asyxml><view file="modules/geometry.asy" type="abscissa" signature="nodabscissa(arc,point)"/></asyxml>*/ x=nodabscissa(c,M).x; label("nodabscissa(c,M).x="+(string)x,p,E); dot(point(c,x),1mm+red); label("nodabscissa(c,P).x= \scriptsize{ERROR (point is not on the arc!)}",T*p,E); p=t*p; /*<asyxml><view file="modules/geometry.asy" type="abscissa" signature="relabscissa(arc,point)"/></asyxml>*/ x=relabscissa(c,M).x; label("relabscissa(c,M).x="+(string)x,p,E); dot(relpoint(c,x),1mm+red); x=relabscissa(c,P).x; label("relabscissa(c,P).x="+(string)x,T*p,E); dot(relpoint(c,x),1mm+red);
đź”—geometry-fig097

Show geometry/fig0970.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Arc | #Ellipse | #Line | #Abscissa | #Intersection | #Point
import geometry; size(8cm); // currentcoordsys=cartesiansystem((1,2),i=(1,0.5),j=(-0.5,.75)); show(currentcoordsys, xpen=invisible); point A=(-1,0) ; dot("$A$",A,S); point B=(1,1) ; dot("$B$",B,S); point C=(0,0) ; point D=(1,-1) ; dot("$D$",D,SW); arc c=arc(ellipse(C,2,1,20), 0, 270); draw(complementary(c),dashed+grey); line l1=line(A,B); draw(l1); line l2=line(C,D); draw(l2); point[] J=intersectionpoints(l1,c); point[] K=intersectionpoints(l2,c); /*<asyxml><view file="modules/geometry.asy" type="arc" signature="arc(explicit arc,point,point)"/></asyxml>*/ draw(arc(c,J[0],K[0]),2mm+0.8yellow); draw(arc(c,K[0],J[1]),2mm+0.8red); /*<asyxml><view file="modules/geometry.asy" type="arc" signature="arc(explicit arc,abscissa,abscissa)"/></asyxml>*/ draw(arc(c,relabscissa(c,J[1]),relabscissa(1)),2mm+0.8green); draw(arc(c,relabscissa(0),relabscissa(c,J[0])),2mm+0.8blue); dot("$J_0$",J[0],2N); dot("$J_1$",J[1],N+2W); dot("$K_0$",K[0],2N); draw(c, 1mm+white);
đź”—geometry-fig099

Show geometry/fig0990.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Arc | #Arrows/Bars | #Ellipse | #Abscissa
import geometry; size(6cm,0); // currentcoordsys=cartesiansystem((1,2),i=(1,0.5),j=(-0.5,.75)); // show(currentcoordsys, xpen=invisible); point A=(-1,1); dot("$A$",A,S); arc a=arc(ellipse(A,2,1,45), 45, 270, fromCenter); draw(a,linewidth(3mm),ArcArrow(5mm)); /*<asyxml><view file="modules/geometry.asy" type="arc" signature="arc(explicit arc,abscissa,abscissa)"/></asyxml>*/ draw(arc(a,angabscissa(135),angabscissa(225)),1mm+red,ArcArrow(3mm),TrueMargin(0,0.5mm));
đź”—geometry-fig102

Show geometry/fig1020.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Arc | #Ellipse | #Intersection | #Line | #Coords system
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); /*<asyxml><view file="modules/geometry.asy" type="point[]" signature="intersectionpoints(arc,arc)"/></asyxml>*/ point[] inter=intersectionpoints(a,b); dot(inter); /*<asyxml><view file="modules/geometry.asy" type="point[]" signature="intersectionpoints(line,arc)"/></asyxml>*/ point[] inter=intersectionpoints(l,a); dot(inter); point[] inter=intersectionpoints(l,b); dot(inter);
đź”—geometry-fig104

Show geometry/fig1040.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Geometry.asy
Tags : #Geometry | #Arc | #Ellipse | #Intersection | #Line | #Coords system | #Tangent
import geometry; size(10cm,0); // currentcoordsys=cartesiansystem((1,2),i=(1,0.5),j=(-0.5,.75)); // show(currentcoordsys, xpen=invisible); real R=2; point A=(1,1.5); dot("$A$",A,S,red); point B=A+(2.5,1); dot("$B$",B,E,blue); arc a=arc(ellipse(A,R,R/2,30),-40,180); // ellispenodesnumberfactor=400; arc b=arc(ellipse(B,2R,R/2,-10),-30,180); draw(a,red); draw(b,blue); point M=intersectionpoints(a,b)[0]; dot(M); /*<asyxml><view file="modules/geometry.asy" type="line" signature="tangent(explicit arc,point)"/></asyxml>*/ draw(tangent(a,M), grey); draw(tangent(b,M), grey); /*<asyxml><view file="modules/geometry.asy" type="line" signature="tangent(explicit arc,abscissa)"/></asyxml>*/ draw(tangent(a,angabscissa(45)), grey);