Vector4.All(Vector4, Single) Method

Definition

Determines if all elements of a vector are equal to a given value.

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

Parameters

vector
Vector4

The vector whose elements are being checked.

value
Single

The value to check for in vector

Returns

true if all elements of vector are equal to value; otherwise, false.

Applies to