Mutually Exclusive

hog

Senior Contributor
Joined
Mar 17, 2003
Messages
984
Location
UK
I know I should know this, but.....

What does mutally exclusive mean?
 
So in the following;

Visual Basic:
Public Const FVF_CUSTOMVERTEX As VertexFormats = VertexFormats.Transformed Or VertexFormats.Texture1

What does this mean? If one or the other why Or them??
 
Different thing, VertexFormats.Transformed and VertexFormats.Texture1 are two seperate bit flags.

That line of code is doing a binary OR on them - the result is both options will be set.
 
Or alternatively

OR
1....1 = 1
1....0 = 1
0....1 = 1
0....0 = 0

Mutually Exclusive
1....1 = 0
1....0 = 1
0....1 = 1
0....0 = 0

If i remember correctly its created by
(x OR y) AND (NOT(x AND y))

I am sure thats right. If in doubt, play around with it, trying it with:
x = 1, y = 1
x = 0, y = 1
x = 1, y = 0
x = 0, y = 0
 
Back
Top