/* real[][] intersections(path p, path q, real fuzz=0); Return all intersection times of paths p and q as a sorted array of real arrays of length 2 (see [sort], page 67). The computations are performed to the absolute error specified by fuzz, or, if fuzz is 0, to machine precision. Cf. exemple précédent pour l'utilisation de real[] intersect(path p, path q, real fuzz=0); */ size(7.5cm,0); path ligne1=(-3,1){dir(45)}..(-1,2)..{dir(10)}(4,0), ligne2=(-3,-1){dir(45)}..(0,3)..(1.5,-1)..{dir(80)}(3,2); real[][] parametres=intersections(ligne1,ligne2); pair pA=point(ligne1,parametres[0][0]), pB=point(ligne1,parametres[1][0]), pC=point(ligne2,parametres[2][1]); draw(ligne1,blue); draw(ligne2,orange); // dot(pA,4bp+brown); dot(pB,4bp+green); dot(pC,4bp+purple); shipout(bbox(3mm,white));