#### 7.10.3 capB

• capB( <set1>, <set2> )
• Description: returns the outline of the intersection of <set1> with <set2> in the form of a control points list that has to be drawn using the macro drawSet. The two given sets have also to be two control point lists representing closed curves of the same orientation, with a quite simple shape. The macro setB is useful to define and draw sets.
• Exemple(s): intersection of two sets:

 \begin{texgraph}[name=capB, export=pgf]   Marges(0,0,0,0),size(7.5),   A:=setB("A", 0, [rotation:=30]),   B:=setB("B", 0, [rotation:=-30]),   C:= capB(A,B),Color:=red,FillStyle:=full,   drawSet(C, [FillOpacity:=0.5, FillColor:=pink])   \end{texgraph}

capB macro