Vector2Extensions

Vector2Extensions is a public static class in the Extensions Namespace. It contains extension methods for XNA's Vector2 struct.

IsNaN
Returns true if both components of vector are equal to Single.NaN.

ToRectangle
Returns a rectangle with a position and size.

Floor
Floors both components of the vector.

FloorDivide
Divides both components of a vector by a divisor, and floors the result.

FloorDivide
Divides a vector by a divisor, and floors the result.

Abs
Returns the absolute value of the components.

GreaterThan
Return true if both components of left are greater than both components of right.

LessThan
Return true if both components of left are less than both components of right.

GreaterThanOrEqualTo
Return true if both components of left are greater than or equal to both components of right.

LessThanOrEqualTo
Return true if both components of left are less than or equal to both components of right.