Vector2 Members
Describes and manipulates a vector in two-dimensional (2-D) space.
The following tables list the members exposed by the Vector2 type.
Public Constructors
Name | Description | |
---|---|---|
Vector2 | Initializes a new instance of the Vector2 structure. |
Top
Public Fields
Name | Description | |
---|---|---|
X | Represents the x component of the 2-D vector. | |
Y | Represents the y component of the 2-D vector. |
Top
Public Properties
Name | Description | |
---|---|---|
Empty | Retrieves an empty 2-D vector. |
Top
Public Methods
(see also Protected Methods )
Name | Description | |
---|---|---|
Add | Overloaded. Adds two 2-D vectors. | |
Equals | Overloaded. Overridden. | |
GetHashCode | Overridden. Returns the hash code for the current instance. | |
GetType | Gets the Type of the current instance. (inherited from Object) | |
Length | Overloaded. Returns the length of a 2-D vector. | |
LengthSq | Overloaded. Returns the square of the length of a 2-D vector. | |
op_Addition | Adds two 2-D vectors. | |
op_Equality | Compares two 2-D vectors to determine whether they are the same. | |
op_Inequality | Compares two 2-D vectors to determine whether they are different. | |
op_Multiply | Overloaded. Determines the product of a number and a 2-D vector. | |
op_Subtraction | Subtracts a 2-D vector from another 2-D vector. | |
op_UnaryNegation | Returns a 2-D vector that is the negation of the specified 2-D vector. | |
ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) | |
Subtract | Overloaded. Subtracts two 2-D vectors. | |
ToString | Returns a String that represents the current Object. (inherited from Object) |
Top
Protected Methods
Name | Description | |
---|---|---|
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object) | |
MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |
Top
See Also
Reference
Vector2 Structure
Microsoft.WindowsMobile.DirectX Namespace