[Bf-python] Vector Comparison Issue

Campbell Barton cbarton at metavr.com
Tue Sep 20 15:47:48 CEST 2005


Hi, made a vector/math python program and had a bug that stemed from 
this error.

from Blender import Mathutils
f = 22.0 / 7.0
vec = Mathutils.Vector(f,0,0)
print vec.x == f
...False

I think the problem is that Python floats are long and Vectors are just 
normal floats.
Is there a way around this?

- Cam

-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241



More information about the Bf-python mailing list