Hi Gazi, On 2/23/07, Gazi Alankus <[EMAIL PROTECTED]> wrote:
I can, but I wouldn't because it's ugly and it doesn't solve the problem of "future bugs for everyone who never uses bitwise xor!". The whole point of having an operator is to provide a more intuitive way of using a function. IMHO addition of cross(v1, v2) or v1.cross(v2) would be nicer, along with the doxygen note warning about the issue regarding operator precedence.
I'll consider adding a cross(v1,v2) method, but won't remove the current ^ operator as it just too convinient and has been in service for 6 years without any complaints until today. The issue with precedence is one resolve by enclosing the various stages on the maths ops by brackets, this is just a habit that is pretty easy to get in to and even makes the code clearer and more readable. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
