Vector Methods

The Vector type exposes the following members.

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

  Name Description
Explicit interface implemetation Private method 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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft