Vector2.IndexOfWhereAllBitsSet(Vector2) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定已设置所有位的向量中第一个元素的索引。
public:
static int IndexOfWhereAllBitsSet(System::Numerics::Vector2 vector);
public static int IndexOfWhereAllBitsSet(System.Numerics.Vector2 vector);
static member IndexOfWhereAllBitsSet : System.Numerics.Vector2 -> int
Public Shared Function IndexOfWhereAllBitsSet (vector As Vector2) As Integer
参数
- vector
- Vector2
要检查其元素的向量。
返回
表示已设置所有位的第一个元素的索引 vector ;否则, -1 如果不存在此类元素。