Table of Contents

Method YIsAllTrue

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YIsAllTrue<T>(Vector<T>)

Checks if all 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 YIsAllTrue<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 all elements in value is true. (value 中所有元素为true时返回true).

Type Parameters

T

The vector element type (向量中的元素的类型).

See Also