語言

Vector3.IndexOfWhereAllBitsSet(Vector3) 方法

定義

決定向量中第一個元素的索引,該向量所有位元都已設定。

public:
 static int IndexOfWhereAllBitsSet(System::Numerics::Vector3 vector);
public static int IndexOfWhereAllBitsSet(System.Numerics.Vector3 vector);
static member IndexOfWhereAllBitsSet : System.Numerics.Vector3 -> int
Public Shared Function IndexOfWhereAllBitsSet (vector As Vector3) As Integer

參數

vector
Vector3

被檢查元素的向量。

傳回

索引 表示 vector 第一個所有位元都設定的元素;否則, -1 若不存在該元素。

適用於