diff --git a/boxes/__init__.py b/boxes/__init__.py index 9ae63c0..02206b8 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -1798,7 +1798,7 @@ class Boxes: overallwidth = width * (num // 2 + num % 2) overallheight = height - alpha = math.degrees(math.atan((y-r)/float(x-r))) + alpha = math.degrees(math.atan2(y-r, float(x-r))) if self.move(overallwidth, overallheight, move, before=True): return