语言

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 如果不存在此类元素。

适用于