Share via


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
Public method Supported by the .NET Compact Framework Vector2 Initializes a new instance of the Vector2 structure.

Top

Public Fields

  Name Description
Public field Supported by the .NET Compact Framework X Represents the x component of the 2-D vector.
Public field Supported by the .NET Compact Framework Y Represents the y component of the 2-D vector.

Top

Public Properties

  Name Description
Public property Static Supported by the .NET Compact Framework Empty Retrieves an empty 2-D vector.

Top

Public Methods

(see also Protected Methods )

  Name Description
Public method Supported by the .NET Compact Framework Add Overloaded. Adds two 2-D vectors.
Public method Supported by the .NET Compact Framework Equals Overloaded. Overridden.  
Public method Supported by the .NET Compact Framework GetHashCode Overridden. Returns the hash code for the current instance.
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (inherited from Object)
Public method Supported by the .NET Compact Framework Length Overloaded. Returns the length of a 2-D vector.
Public method Supported by the .NET Compact Framework LengthSq Overloaded. Returns the square of the length of a 2-D vector.
Public method Static Supported by the .NET Compact Framework op_Addition Adds two 2-D vectors.
Public method Static Supported by the .NET Compact Framework op_Equality Compares two 2-D vectors to determine whether they are the same.
Public method Static Supported by the .NET Compact Framework op_Inequality Compares two 2-D vectors to determine whether they are different.
Public method Static Supported by the .NET Compact Framework op_Multiply Overloaded. Determines the product of a number and a 2-D vector.
Public method Static Supported by the .NET Compact Framework op_Subtraction Subtracts a 2-D vector from another 2-D vector.
Public method Static Supported by the .NET Compact Framework op_UnaryNegation Returns a 2-D vector that is the negation of the specified 2-D vector.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Supported by the .NET Compact Framework Subtract Overloaded. Subtracts two 2-D vectors.
Public method Supported by the .NET Compact Framework ToString  Returns a String that represents the current Object. (inherited from Object)

Top

Protected Methods

  Name Description
Protected method Supported by the .NET Compact Framework 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)
Protected method Supported by the .NET Compact Framework MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)

Top

See Also

Reference

Vector2 Structure
Microsoft.WindowsMobile.DirectX Namespace

Other Resources

Direct3D Programming