From 0eb660a14cb0607e59e36b667d52738ed853cbcb Mon Sep 17 00:00:00 2001 From: vocx-fc Date: Sun, 4 Aug 2019 23:15:50 -0500 Subject: [PATCH] Draft: DraftVecUtils, improved Pythonic spacing and variable name --- src/Mod/Draft/DraftVecUtils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Draft/DraftVecUtils.py b/src/Mod/Draft/DraftVecUtils.py index 2eac365721..d5f7af5674 100644 --- a/src/Mod/Draft/DraftVecUtils.py +++ b/src/Mod/Draft/DraftVecUtils.py @@ -177,10 +177,10 @@ def rotate(u, angle, axis=Vector(0, 0, 1)): if angle == 0: return u - l = axis.Length - x=axis.x/l - y=axis.y/l - z=axis.z/l + L = axis.Length + x = axis.x/L + y = axis.y/L + z = axis.z/L c = math.cos(angle) s = math.sin(angle) t = 1 - c