Vector2.Any(Vector2, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines if any elements of a vector are equal to a given value.
public:
static bool Any(System::Numerics::Vector2 vector, float value);
public static bool Any(System.Numerics.Vector2 vector, float value);
static member Any : System.Numerics.Vector2 * single -> bool
Public Shared Function Any (vector As Vector2, value As Single) As Boolean
Parameters
- vector
- Vector2
The vector whose elements are being checked.
- value
- Single
The value to check for in vector
Returns
true if any elements of vector are equal to value; otherwise, false.