From 3bcfee38ac9d6386b98fd75c595ea5e8cfb84778 Mon Sep 17 00:00:00 2001 From: hornsilk Date: Thu, 5 Sep 2024 14:58:00 +0000 Subject: [PATCH] fixed bug in poly_poly --- libraries/codesters/transformations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/codesters/transformations.py b/libraries/codesters/transformations.py index 2a55945..1763c6d 100644 --- a/libraries/codesters/transformations.py +++ b/libraries/codesters/transformations.py @@ -78,7 +78,7 @@ def poly_poly(cx, cy, points, rotation): point_list = [] - for i in range(len(points)/2): + for i in range(int(len(points)/2)): x = points[i*2] - cx y = points[i*2 + 1] - cy