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

Adds two vectors.

addPoint

Translates point by 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.

multiply

Returns the dot product of two vectors.

multiplyScalarAndVector

Multiplies vector by a scalar.

multiplyVectorAndScalar

Multiplies vector by a scalar.

negate

Reverses the direction of this vector.

normalize

Makes this vector a unit vector.

subtract

Subtracts two vectors.

 See Also