Method YIsAnyTrue
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YIsAnyTrue<T>(Vector<T>)
Checks if any elements of the vector is true (检查向量中任一元素是不是为true).
Mnemonic: rt := value[0] || value[1] || value[2] || ... || value[Count-1]
. The element of value must be 0 or AllBitsSet (Signed integer value -1).
public static bool YIsAnyTrue<T>(Vector<T> value) where T : struct
Parameters
value
Vector<T>The vector whose elements will be checked. The return value of a comparison category function can be assigned to it (将检查其元素的向量. 可将比较类函数的返回值赋值给它). e.g. Equals<T>(Vector<T>, Vector<T>).
Returns
- bool
Return
true
if any elements invalue
is true. (value
中任一元素为true时返回true
).
Type Parameters
T
The vector element type (向量中的元素的类型).
- See Also