Name | Description | |
---|---|---|
Vector2 Constructor | Overloaded. |
The following tables list the members exposed by Vector2.
Name | Description | |
---|---|---|
Vector2 Constructor | Overloaded. |
Name | Description | |
---|---|---|
One | A Vector2 with all of its components set to one. | |
SizeInBytes | The size of the Vector2 type, in bytes. | |
UnitX | The X unit Vector2 (1, 0). | |
UnitY | The Y unit Vector2 (0, 1). | |
X | The X component of the vector. | |
Y | The Y component of the vector. | |
Zero | A Vector2 with all of its components set to zero. |
Name | Description | |
---|---|---|
IsNormalized | Gets a value indicting whether this instance is normalized. | |
Item | Gets or sets the component at the specified index. | |
Length | Gets the length of the vector. | |
LengthSquared | Gets the squared length of the vector. |
Name | Description | |
---|---|---|
Abs | Returns a vector whose elements are the absolute values of each of the specified vector's elements. | |
AbsRef | Calculates the absolute value vector. | |
Add | Adds two vectors. | |
AngleBetween | Calculates an angle between two vectors, in radians. | |
Clamp | Restricts a vector between a minimum and a maximum value. | |
Divide | Overloaded. Divides the specified vector by a specified scalar value. | |
Dot | Calculates the dot product of two vectors. | |
Equals | Overloaded. Determines whether the specified Vector2 is equal to this instance. | |
GetHashCode | Returns a hash code for this instance. | |
Lerp | Performs a linear interpolation between two vectors based on the given weighting. | |
Max | Returns a vector containing the largest components of the specified vectors. | |
Min | Returns a vector containing the smallest components of the specified vectors. | |
Multiply | Overloaded. Scales a vector by the given value. | |
Negate | Reverses the direction of a given vector. | |
NegateRef | Reverses the direction of the vector. | |
Normalize | Converts the vector into a unit vector. | |
NormalizeRef | Converts the vector into a unit vector. | |
Subtract | Subtracts two vectors. | |
ToArray | Creates an array containing the elements of the vector. | |
ToString | Overloaded. Returns a System.String that represents this instance. |
Addition | Overloaded. Adds two vectors. |
Division | Overloaded. Divides the specified vector by a specified scalar value. |
Equality | Tests for equality between two objects. |
Explicit Type Conversion | Overloaded. Performs an explicit conversion from Vector2 to Vector3. |
Inequality | Tests for inequality between two objects. |
Multiplication | Overloaded. Scales a vector by the given value. |
Subtraction | Subtracts two vectors. |
Unary Negation | Reverses the direction of a given vector. |