Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Vector2 Members
Collapse the table of content
Expand the table of content

Vector2 Members

Describes and manipulates a vector in two-dimensional (2-D) space.

The following tables list the members exposed by the Vector2 type.

  Name Description
Public method Supported by the .NET Compact Framework Vector2 Initializes a new instance of the Vector2 structure.
Top

  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

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

(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 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

  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

Community Additions

ADD
Show:
© 2015 Microsoft