95 |
# along one of the coordinate axes. Here we also get to check |
# along one of the coordinate axes. Here we also get to check |
96 |
# whether all components are zero. |
# whether all components are zero. |
97 |
if v[0] != 0: |
if v[0] != 0: |
98 |
vec3 = (- v[4] / v[0], 0, 0) |
vec3 = (- v[3] / v[0], 0, 0) |
99 |
elif v[1] != 0: |
elif v[1] != 0: |
100 |
vec3 = (0, - v[4] / v[1], 0) |
vec3 = (0, - v[3] / v[1], 0) |
101 |
elif v[2] != 0: |
elif v[2] != 0: |
102 |
vec3 = (0, 0, - v[4] / v[2]) |
vec3 = (0, 0, - v[3] / v[2]) |
103 |
else: |
else: |
104 |
assert 0, "Vec was all zero!" |
assert 0, "Vec was all zero!" |
105 |
|
|