We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df06e7d commit f1b70afCopy full SHA for f1b70af
tools/cie_diagrams.py
@@ -122,8 +122,10 @@ def get_spectral_locus_labels(opt):
122
123
diry = (y - y1) > 0
124
dirx = (x - x1) > 0
125
- m1 = -((y - y1) / (x - x1)) ** -1
126
- m2 = -((y2 - y) / (x2 - x)) ** -1
+ temp = (y - y1) / (x - x1)
+ m1 = -(temp) ** -1 if temp else 0
127
+ temp = (y2 - y) / (x2 - x)
128
+ m2 = -(temp) ** -1 if temp else 0
129
m = alg.lerp(m1, m2, factor)
130
131
length = math.sqrt(1.0 + m ** 2)
0 commit comments