2 from __future__ import print_function
16 s = ' '.join(map(str,args))
17 for l in s.split('\n'):
18 print('// D ', l, file=f)
22 def line(vd, p0, p1, **kw):
23 vd.curve(lambda t: p0 + t * (p1-p0), **kw)
24 def arrow(vd, p, d, **kw):
28 def curve(*a, **kw): pass
29 def line(*a, **kw): pass
30 def arrow(*a, **kw): pass
31 def crashing(*a, **kw): pass
33 class MatrixVisdebug(BaseVisdebug):
34 def __init__(m, base, matrix):
37 def curve(m, fn, **kw):
38 m._b.curve(lambda t: moenp.augmatmultiply(m._matrix, fn(t)), **kw)
39 def crashing(m, *a, **kw): m._b.crashing(*a, **kw)
41 _nullvis = NullVisdebug()
48 return _vis[0] != _nullvis