# Vector Methods

.NET Framework 4.5

The Vector type exposes the following members.

## Methods

Name Description
Add(Vector, Point) Translates the specified point by the specified vector and returns the resulting point.
Add(Vector, Vector) Adds two vectors and returns the result as a Vector structure.
AngleBetween Retrieves the angle, expressed in degrees, between the two specified vectors.
CrossProduct Calculates the cross product of two vectors.
Determinant Calculates the determinant of two vectors.
Divide Divides the specified vector by the specified scalar and returns the result as a Vector.
Equals(Object) Determines whether the specified Object is a Vector structure and, if it is, whether it has the same X and Y values as this vector. (Overrides ValueType.Equals(Object).)
Equals(Vector) Compares two vectors for equality.
Equals(Vector, Vector) Compares the two specified vectors for equality.
GetHashCode Returns the hash code for this vector. (Overrides ValueType.GetHashCode().)
GetType Gets the Type of the current instance. (Inherited from Object.)
Multiply(Double, Vector) Multiplies the specified scalar by the specified vector and returns the resulting Vector.
Multiply(Vector, Double) Multiplies the specified vector by the specified scalar and returns the resulting Vector.
Multiply(Vector, Matrix) Transforms the coordinate space of the specified vector using the specified Matrix.
Multiply(Vector, Vector) Calculates the dot product of the two specified vectors and returns the result as a Double.
Negate Negates this vector. The vector has the same magnitude as before, but its direction is now opposite.
Normalize Normalizes this vector.
Parse Converts a string representation of a vector into the equivalent Vector structure.
Subtract Subtracts the specified vector from another specified vector.
ToString() Returns the string representation of this Vector structure. (Overrides ValueType.ToString().)
ToString(IFormatProvider) Returns the string representation of this Vector structure with the specified formatting information.
Top

## Explicit Interface Implementations

Name Description
IFormattable.ToString This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. For a description of this member, see ToString.
Top