Vector Operators and Type Conversions

The Vector type exposes the following members.

  Name Description
Public operator Static member Addition(Vector, Point) Translates a point by the specified vector and returns the resulting point.
Public operator Static member Addition(Vector, Vector) Adds two vectors and returns the result as a vector.
Public operator Static member Division Divides the specified vector by the specified scalar and returns the resulting vector.
Public operator Static member Equality Compares two vectors for equality.
Public operator Static member Explicit(Vector to Point) Creates a Point with the X and Y values of this vector.
Public operator Static member Explicit(Vector to Size) Creates a Size from the offsets of this vector.
Public operator Static member Inequality Compares two vectors for inequality.
Public operator Static member Multiply(Double, Vector) Multiplies the specified scalar by the specified vector and returns the resulting vector.
Public operator Static member Multiply(Vector, Double) Multiplies the specified vector by the specified scalar and returns the resulting vector.
Public operator Static member Multiply(Vector, Matrix) Transforms the coordinate space of the specified vector using the specified Matrix.
Public operator Static member Multiply(Vector, Vector) Calculates the dot product of the two specified vector structures and returns the result as a Double.
Public operator Static member Subtraction Subtracts one specified vector from another.
Public operator Static member UnaryNegation Negates the specified vector.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft