Vector2.Count(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 the number of elements in a vector that are equal to a given value.
public:
static int Count(System::Numerics::Vector2 vector, float value);
public static int Count(System.Numerics.Vector2 vector, float value);
static member Count : System.Numerics.Vector2 * single -> int
Public Shared Function Count (vector As Vector2, value As Single) As Integer
Parameters
- vector
- Vector2
The vector whose elements are being checked.
- value
- Single
The value to check for in vector
Returns
The number of elements in vector that are equal to value.