chiark / gitweb /
more debugging
[moebius3.git] / visual
diff --git a/visual b/visual
index 90ad5c3bdbfe99281bf69f94553eaab142701c95..dcb57e1a573ef3da001f9ee2cedcd2b30d0cdfcd 100755 (executable)
--- a/visual
+++ b/visual
@@ -16,16 +16,12 @@ from moedebug import *
 nv = 40
 nw = 40
 
-class Visdebug():
+class Visdebug(BaseVisdebug):
   def curve(vd, fn):
     # fn(t) => 3-tuple, 3-list, or similar, for t \elem [0,1]
     ps = [ fn(t) for t in np.linspace(0,1,11) ]
     #dbg('Visdebug', ps)
     curve(pos = ps, color=color.yellow)
-  def line(vd, p0, p1):
-    vd.curve(lambda t: p0 + t * (p1-p0))
-  def arrow(vd, p, d):
-    vd.line(p, p+d)
   def crashing(vd, msg):
     print("CRASHING - VISDEBUG", msg, file=sys.stderr)
     rate(1E-8)