Re: [NTG-context] Check if two paths intersect in Metafun

2020-12-25 Thread Fabrice L
Hi, > Le 25 déc. 2020 à 08:48, Jairo A. del Rio a écrit : > > Hi, list. I've got a question about paths and intersections. The following: > > \starttext > \startMPpage > path p[]; > > p[1] = fullcircle scaled 2cm; > p[2] = unitsquare shifted (4cm,6cm); > > if (known (p[1] intersectionpoint

[NTG-context] Check if two paths intersect in Metafun

2020-12-25 Thread Jairo A. del Rio
Hi, list. I've got a question about paths and intersections. The following: \starttext \startMPpage path p[]; p[1] = fullcircle scaled 2cm; p[2] = unitsquare shifted (4cm,6cm); if (known (p[1] intersectionpoint p[2])): draw textext("yes"); else: draw textext("no"); fi;