Draft: DraftVecUtils, improved Pythonic spacing and variable name

This commit is contained in:
vocx-fc
2019-08-04 23:15:50 -05:00
committed by Yorik van Havre
parent 03ffcb35f0
commit 0eb660a14c

View File

@@ -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