[Bf-python] Vectors comparison doubts

Mark Young marky1991 at gmail.com
Tue Feb 10 15:22:56 CET 2015


​Unless something's changed since 2.49, when you do an equality check for
vectors, it does an element-wise comparison. When you use the inequality
operators, it does a magnitude comparison.

http://www.blender.org/api/249PythonDoc/Mathutils.Vector-class.html

"Comparison operators can be done on Vector classes:
>, >=, <, <= test the vector magnitude
==, != test vector values e.g. 1,2,3 != 1,2,4 even if they are the same
length"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20150210/95b622bb/attachment.html>


More information about the Bf-python mailing list