Upravit

Sdílet prostřednictvím


Vector4.IndexOf(Vector4, Single) Method

Definition

Determines the index of the first element in a vector that is equal to a given value.

public:
 static int IndexOf(System::Numerics::Vector4 vector, float value);
public static int IndexOf(System.Numerics.Vector4 vector, float value);
static member IndexOf : System.Numerics.Vector4 * single -> int
Public Shared Function IndexOf (vector As Vector4, value As Single) As Integer

Parameters

vector
Vector4

The vector whose elements are being checked.

value
Single

The value to check for in vector

Returns

The index into vector representing the first element that was equal to value; otherwise, -1 if no such element exists.

Applies to