Difference between revisions of "Category talk:Wizardry and Steamworks"

From Second Life Wiki
Jump to navigation Jump to search
m (→‎3-Term Logical Disjunction Using Vectors: Changed deprecated <lsl> tag to <syntaxhighlight> (LSL code was unreadable otherwise!); added user link to Kira Komarov)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{delete|Privacy issues, lack of time to offer support and ultimately the license clash between Wizardry and Steamworks' GFDL License and Second Life Creative Commons CC-BY-SA 3.0 which are not compatible. Reference: http://en.wikipedia.org/wiki/GNU_Free_Documentation_License#Compatibility_with_Creative_Commons_licensing_terms}}
== 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.
<syntaxhighlight lang="lsl2">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.</syntaxhighlight>
-- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 23:19, 26 November 2011 (PST)
 
=== Cool ===
 
Added, thanks!
 
{{u|Kira Komarov}} 12:56, 14 January 2012 (PST)

Latest revision as of 16:19, 10 June 2023

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)