System.Numerics.Vector2
A structure encapsulating two single precision floating point values and provides hardware accelerated methods.
The X component of the vector.
The Y component of the vector.
Returns the vector (1,1).
Returns the vector (1,0).
Returns the vector (0,1).
Returns the vector (0,0).
Constructs a vector whose elements are all the single specified value.
Constructs a vector with the given individual elements.
Returns a vector whose elements are the absolute values of each of the source vector's elements.
Adds two vectors together.
Restricts a vector between a min and max value.
Returns the Euclidean distance between the two given points.
Returns the Euclidean distance squared between the two given points.
Divides the first vector by the second.
Divides the vector by the given scalar.
Returns the dot product of two vectors.
Linearly interpolates between two vectors based on the given weighting.
Returns a vector whose elements are the maximum of each of the pairs of elements in the two source vectors
Returns a vector whose elements are the minimum of each of the pairs of elements in the two source vectors.
Multiplies two vectors together.
Multiplies a vector by the given scalar.
Multiplies a vector by the given scalar.
Negates a given vector.
Returns a vector with the same direction as the given vector, but with a length of 1.
Adds two vectors together.
Divides the first vector by the second.
Divides the vector by the given scalar.
Returns a boolean indicating whether the two given vectors are equal.
Returns a boolean indicating whether the two given vectors are not equal.
Multiplies two vectors together.
Multiplies a vector by the given scalar.
Multiplies a vector by the given scalar.
Subtracts the second vector from the first.
Negates a given vector.
Returns the reflection of a vector off a surface that has the specified normal.
Returns a vector whose elements are the square root of each of the source vector's elements.
Subtracts the second vector from the first.
Transforms a vector by the given matrix.
Transforms a vector by the given matrix.
Transforms a vector by the given Quaternion rotation value.
Transforms a vector normal by the given matrix.
Transforms a vector normal by the given matrix.
Copies the contents of the vector into the given array.
Copies the contents of the vector into the given array, starting from the given index.
Returns a boolean indicating whether the given Vector2 is equal to this Vector2 instance.
Returns the length of the vector.
Returns the length of the vector squared. This operation is cheaper than Length().
Returns a String representing this Vector2 instance, using the specified format to format individual elements.
Returns a String representing this Vector2 instance, using the specified format to format individual elements
and the given IFormatProvider.