Returns a vector containing the results of performing a logical exclusive OR operation between the given vectors.
d=vec_xor(a, b)
The following table describes the types of the returned value and the function arguments.
d | a | b |
---|---|---|
vector4double | vector4double | vector4double |
The value of each element of the result is the result of a logical exclusive OR between the corresponding elements of a and b.
d[0] = a[0] XOR b[0]
d[1] = a[1] XOR b[1]
d[2] = a[2] XOR b[2]
d[3] = a[3] XOR b[3]
a = (-1.0, -1.0, 1.0, 1.0)
b = (-1.0, 1.0, -1.0, 1.0)
d: (-1.0, 1.0, 1.0, -1.0)