added various missing methods of normline, normcurve and normsubpath
[PyX/mjg.git] / manual / radii.py
blob08b7843c1946331575ea647529e06de2713f9b5d
1 from pyx import *
3 c = canvas.canvas()
5 circle = path.circle(0, 0, 2)
6 line = path.line(-3, 1, 3, 2)
7 c.stroke(circle, [style.linewidth.Thick])
8 c.stroke(line, [style.linewidth.Thick])
10 isects_circle, isects_line = circle.intersect(line)
11 for isect in isects_circle:
12 isectx, isecty = circle.at(isect)
13 c.stroke(path.line(0, 0, isectx, isecty))
15 c.writeEPSfile("radii")