語言

Vector2.LastIndexOfWhereAllBitsSet(Vector2) 方法

定義

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

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

參數

vector
Vector2

被檢查元素的向量。

傳回

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

適用於