def point_inside(self, point): if not self.location: return False return guiutils.point_in_square(point, self.location, self.chit_scale)
def point_inside(self, point): assert self.location return guiutils.point_in_square(point, self.location, self.chit_scale)