Category talk:Wizardry and Steamworks

From Second Life Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

3-Term Logical Disjunction Using Vectors

I'm a bit confused why there is so much extra logic in the Universal NOR, the following gives the same value to Q.

integer Q = !((integer)I.x || (integer)I.y || (integer)I.z);
//or even
integer Q = !(integer)(I * I);//this is a cheat and computationally more expensive but oh so elegant.

-- Strife (talk|contribs) 23:19, 26 November 2011 (PST)

Cool

Added, thanks!

Kira Komarov 12:56, 14 January 2012 (PST)