summaryrefslogtreecommitdiff
path: root/gerber/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerber/utils.py')
-rw-r--r--gerber/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gerber/utils.py b/gerber/utils.py
index e3eda1d..bee8a91 100644
--- a/gerber/utils.py
+++ b/gerber/utils.py
@@ -291,9 +291,9 @@ def rotate_point(point, angle, center=(0.0, 0.0)):
`point` rotated about `center` by `angle` degrees.
"""
angle = radians(angle)
- xdelta, ydelta = tuple(map(sub, point, center))
- x = center[0] + (cos(angle) * xdelta) - (sin(angle) * ydelta)
- y = center[1] + (sin(angle) * xdelta) - (cos(angle) * ydelta)
+ x_delta, y_delta = tuple(map(sub, point, center))
+ x = center[0] + (cos(angle) * x_delta) - (sin(angle) * y_delta)
+ y = center[1] + (sin(angle) * x_delta) - (cos(angle) * y_delta)
return (x, y)