Search
Vector Members
Constructors Properties Methods
 


Represents a two-dimensional vector.

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

 Public Constructors

  Name Description

Vector

Initializes a new instance of the Vector structure.

 Public Properties

  Name Description

Length

Gets the length of this vector.

LengthSquared

Gets the squared length of this vector.

X

Gets or sets the X component of this vector.

Y

Gets or sets the Y component of this vector.

 Public Methods

  Name Description

Add

Overloaded. Adds vectors or translates a vector.

AngleBetween

Determines the angle between two vectors.

CrossProduct

Returns the size of cross-product of two vectors.

Determinant

Finds the determinant of two vectors.

Divide

Divides a vector by a scalar.

Equals

Overloaded. Determines if two vectors are equal.

GetHashCode

Object.GetHashCode override.

Multiply

Overloaded. Multiplies this vector by a scalar or a vector.

Negate

Reverses the direction of this vector.

Normalize

Makes this vector a unit vector.

Subtract

Subtracts two vectors.

ToString

Overloaded. Gets a string representation of this vector.

 See Also