From 6cb9a8cc40c1ccc9292aa25444c89acdc8c5c65a Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Mon, 27 Sep 2021 21:20:41 -0400 Subject: [PATCH] Remove old check_iteration --- main.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/main.py b/main.py index 57b3d65..732f508 100644 --- a/main.py +++ b/main.py @@ -165,23 +165,6 @@ class Cross_painter(Widget): # check whether a cross at pos interacts with cross def check_interaction(self,pos,cross): - #if max(abs(pos[0]-cross.pos[0]),abs(pos[1]-cross.pos[1]))<=cross.size/2: - # return False - ## find nearest point - #if abs(pos[0]-cross.pos[0])>abs(pos[1]-cross.pos[1]): - # nearest=( - # pos[0]-cross.size*1.5*sgn(pos[0]-cross.pos[0]), - # pos[1]-cross.size*0.5*sgn(pos[1]-cross.pos[1]) - # ) - #else: - # nearest=( - # pos[0]-cross.size*0.5*sgn(pos[0]-cross.pos[0]), - # pos[1]-cross.size*1.5*sgn(pos[1]-cross.pos[1]) - # ) - #if cross_distx(nearest,cross.pos)=5 # cross