Click or drag to resize

Vector2 Operators

The Vector2 type exposes the following members.

Operators
  NameDescription
Public operatorStatic memberAddition
Adds the left Vector2's components to the right Vector2's components and stores it in a new Vector2.
Public operatorStatic memberDivision(Vector2, Vector2)
Divides the components Vector2 by the components of the right Vector2 and stores them in a new Vector2.
Public operatorStatic memberDivision(Vector2, Single)
Divides the components Vector2 by the given scalar and stores them in a new Vector2.
Public operatorStatic memberEquality
Tests whether all components of both Vector2 are equivalent.
Public operatorStatic memberInequality
Tests whether any component of both Vector2 are not equivalent.
Public operatorStatic memberMultiply(Single, Vector2)
Multiplies the components Vector2 by the given scalar and stores them in a new Vector2.
Public operatorStatic memberMultiply(Vector2, Vector2)
Multiplies the components Vector2 by the components of the right Vector2 and stores them in a new Vector2.
Public operatorStatic memberMultiply(Vector2, Single)
Multiplies the components Vector2 by the given scalar and stores them in a new Vector2.
Public operatorStatic memberSubtraction
Subtracts the right Vector2's components from the left Vector2's components and stores it in a new Vector2.
Public operatorStatic memberUnaryNegation
Creates a Vector2 with the components set to the negative values of the given vector's components.
Top
See Also